Add a loading progress timeout mechanism to Internet Settings
- The WiFi scan results may not be called back, need to add loading progress timeout to avoid loading forever Bug: 191336310 Test: manual test make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest Change-Id: I71071e7e68007cf7e16be46230eec3b01f4d2b45
This commit is contained in:
@@ -267,9 +267,8 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
|
|||||||
if (mWifiManager != null) {
|
if (mWifiManager != null) {
|
||||||
setLoading(true, false);
|
setLoading(true, false);
|
||||||
mIsViewLoading = true;
|
mIsViewLoading = true;
|
||||||
if (!mWifiManager.isWifiEnabled()) {
|
getView().postDelayed(mRemoveLoadingRunnable,
|
||||||
getView().postDelayed(mRemoveLoadingRunnable, 100);
|
mWifiManager.isWifiEnabled() ? 1000 : 100);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user