From 7274444b6ea91c8cf765d9236804f962c7f0ae16 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Fri, 19 Sep 2014 17:03:59 -0700 Subject: [PATCH] Always give wifi a chance to quiet down during restore Not just when the current scan-always setting is on. Bug 17571997 Change-Id: Idc56c9682c18f5e23c0bde98736522a79583af5e --- .../src/com/android/providers/settings/SettingsBackupAgent.java | 4 ++-- 1 file changed, 2 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 45957a49763d..78af78566547 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java @@ -352,9 +352,9 @@ public class SettingsBackupAgent extends BackupAgentHelper { if (scanAlways != 0) { Settings.Global.putInt(cr, Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); - // !!! Give the wifi stack a moment to quiesce - try { Thread.sleep(1000); } catch (InterruptedException e) {} } + // !!! Give the wifi stack a moment to quiesce + try { Thread.sleep(1500); } catch (InterruptedException e) {} if (restoredSupplicantData != null) { restoreWifiSupplicant(FILE_WIFI_SUPPLICANT, restoredSupplicantData, restoredSupplicantData.length); -- 2.11.0