Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Settings
Commits
ea87b6d7
Commit
ea87b6d7
authored
15 years ago
by
Irfan Sheriff
Committed by
Android (Google) Code Review
15 years ago
Browse files
Options
Download
Plain Diff
Merge "Stop scanning after errors" into froyo
parents
82164c36
e8149709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/com/android/settings/wifi/WifiSettings.java
src/com/android/settings/wifi/WifiSettings.java
+4
-1
No files found.
src/com/android/settings/wifi/WifiSettings.java
View file @
ea87b6d7
...
...
@@ -431,8 +431,10 @@ public class WifiSettings extends PreferenceActivity implements DialogInterface.
private
void
updateConnectionState
(
DetailedState
state
)
{
/* sticky broadcasts can call this when wifi is disabled */
if
(!
mWifiManager
.
isWifiEnabled
())
if
(!
mWifiManager
.
isWifiEnabled
())
{
mScanner
.
pause
();
return
;
}
if
(
state
==
DetailedState
.
OBTAINING_IPADDR
)
{
mScanner
.
pause
();
...
...
@@ -489,6 +491,7 @@ public class WifiSettings extends PreferenceActivity implements DialogInterface.
mRetry
=
0
;
Toast
.
makeText
(
WifiSettings
.
this
,
R
.
string
.
wifi_fail_to_scan
,
Toast
.
LENGTH_LONG
).
show
();
return
;
}
mAccessPoints
.
setProgress
(
mRetry
!=
0
);
sendEmptyMessageDelayed
(
0
,
6000
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment