diff options
author | Chris Tate <ctate@android.com> | 2015-08-07 18:19:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-07 18:19:35 +0000 |
commit | db0cff71c8d1a7f7f1d5c12a4f7c343030adf21b (patch) | |
tree | 20c0348f43332f80a954eccf6218099f1d5fa3e3 /packages/SettingsProvider | |
parent | 0fe3e45555067af269105d23b3234baa8db7497d (diff) | |
parent | c376afb472d1d4f0fba4a03ac4cf05b498866d64 (diff) | |
download | frameworks_base-db0cff71c8d1a7f7f1d5c12a4f7c343030adf21b.zip frameworks_base-db0cff71c8d1a7f7f1d5c12a4f7c343030adf21b.tar.gz frameworks_base-db0cff71c8d1a7f7f1d5c12a4f7c343030adf21b.tar.bz2 |
am c376afb4: Merge "Wait a bit longer for wifi to shut down before rewriting the config" into mnc-dev
* commit 'c376afb472d1d4f0fba4a03ac4cf05b498866d64':
Wait a bit longer for wifi to shut down before rewriting the config
Diffstat (limited to 'packages/SettingsProvider')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java index d99f741..e74334b 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java @@ -447,8 +447,10 @@ public class SettingsBackupAgent extends BackupAgentHelper { Settings.Global.putInt(cr, Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); } - // !!! Give the wifi stack a moment to quiesce - try { Thread.sleep(1500); } catch (InterruptedException e) {} + // !!! Give the wifi stack a moment to quiesce. We've observed the + // response to disabling WIFI_SCAN_ALWAYS_AVAILABLE taking more + // than 1500ms, so we wait a generous 2500 here before proceeding. + try { Thread.sleep(2500); } catch (InterruptedException e) {} if (restoredSupplicantData != null) { restoreWifiSupplicant(FILE_WIFI_SUPPLICANT, restoredSupplicantData, restoredSupplicantData.length); |