am ea87b6d7
: Merge "Stop scanning after errors" into froyo
Merge commit 'ea87b6d75cf04051b327c89338951c7d1377c16f' into kraken * commit 'ea87b6d75cf04051b327c89338951c7d1377c16f': Stop scanning after errors
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user