summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorJohn Wang <johnwang@google.com>2010-10-06 19:35:26 -0700
committerJohn Wang <johnwang@google.com>2010-10-07 09:44:19 -0700
commit35c4c211e0c9278c50cdb53477e686869b30fad4 (patch)
treea8cc75e8bf7ded7d045804f7724e09e2d2c40bac /telephony
parentbbc80d3436ee52f28bd26f1f0cb01dc4dd183ccc (diff)
downloadframeworks_base-35c4c211e0c9278c50cdb53477e686869b30fad4.zip
frameworks_base-35c4c211e0c9278c50cdb53477e686869b30fad4.tar.gz
frameworks_base-35c4c211e0c9278c50cdb53477e686869b30fad4.tar.bz2
Add flag to skip restoring network seletion.
For bug 3045366. Change-Id: I7ad9ff89b0a77df473b638ad917b363c42de5405
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
index 90ecbd7..6ddb312 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
@@ -358,8 +358,14 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
EVENT_SIM_RECORDS_LOADED, null);
mNeedToRegForSimLoaded = false;
}
- // restore the previous network selection.
- phone.restoreSavedNetworkSelection(null);
+
+ boolean skipRestoringSelection = phone.getContext().getResources().getBoolean(
+ com.android.internal.R.bool.skip_restoring_network_selection);
+
+ if (!skipRestoringSelection) {
+ // restore the previous network selection.
+ phone.restoreSavedNetworkSelection(null);
+ }
pollState();
// Signal strength polling stops when radio is off
queueNextSignalStrengthPoll();