Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 604de349 authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am c9a016dd: Merge "Always give wifi a chance to quiet down during restore" into lmp-dev

* commit 'c9a016dd4eefd01ab6acc916d2a1bad854933e58':
  Always give wifi a chance to quiet down during restore
parents 89de0537 4c45b649
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -352,9 +352,9 @@ public class SettingsBackupAgent extends BackupAgentHelper {
                if (scanAlways != 0) {
                if (scanAlways != 0) {
                    Settings.Global.putInt(cr,
                    Settings.Global.putInt(cr,
                            Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0);
                            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) {
                if (restoredSupplicantData != null) {
                    restoreWifiSupplicant(FILE_WIFI_SUPPLICANT,
                    restoreWifiSupplicant(FILE_WIFI_SUPPLICANT,
                            restoredSupplicantData, restoredSupplicantData.length);
                            restoredSupplicantData, restoredSupplicantData.length);