summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider
diff options
context:
space:
mode:
authorEvan Charlton <evanc@google.com>2014-01-14 14:47:11 -0800
committerEvan Charlton <evanc@google.com>2014-01-15 07:49:51 -0800
commitcc7b04353f432839ff52a3295a5b8c5374e7c8ad (patch)
treec5717aae0dc55e643d86d3816f9cd5e026f60932 /packages/SettingsProvider
parent881c6d57d2528c6eb1bdc934915595f92595bd53 (diff)
downloadframeworks_base-cc7b04353f432839ff52a3295a5b8c5374e7c8ad.zip
frameworks_base-cc7b04353f432839ff52a3295a5b8c5374e7c8ad.tar.gz
frameworks_base-cc7b04353f432839ff52a3295a5b8c5374e7c8ad.tar.bz2
Allow for a configurable WiFi restore bounce delay
Allow the post-restore WiFi bounce delay to be configured (for example, allow it to be set to zero). Bug: 9621727 Change-Id: I0b388aadbe3b45eeb4aa00bbe0e6d86f21731449
Diffstat (limited to 'packages/SettingsProvider')
-rw-r--r--packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java
index 7b09092..45957a4 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java
@@ -422,7 +422,11 @@ public class SettingsBackupAgent extends BackupAgentHelper {
// If we have wifi data to restore, post a runnable to perform the
// bounce-and-update operation a little ways in the future.
if (mWifiRestore != null) {
- new Handler(getMainLooper()).postDelayed(mWifiRestore, WIFI_BOUNCE_DELAY_MILLIS);
+ long wifiBounceDelayMillis = Settings.Global.getLong(
+ getContentResolver(),
+ Settings.Global.WIFI_BOUNCE_DELAY_OVERRIDE_MS,
+ WIFI_BOUNCE_DELAY_MILLIS);
+ new Handler(getMainLooper()).postDelayed(mWifiRestore, wifiBounceDelayMillis);
}
}