summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorAmit Mahajan <amitmahajan@google.com>2014-12-17 15:42:56 -0800
committerAmit Mahajan <amitmahajan@google.com>2014-12-17 15:42:56 -0800
commit2a65688d40dd4f82b217b53eabc63ca41b7ad73c (patch)
tree7118e8618c1d04ab502427895d113e4c50d81baa /telephony/java
parentc3059b444fbd30b1344cd5ee3c7030d1e9e5c408 (diff)
downloadframeworks_base-2a65688d40dd4f82b217b53eabc63ca41b7ad73c.zip
frameworks_base-2a65688d40dd4f82b217b53eabc63ca41b7ad73c.tar.gz
frameworks_base-2a65688d40dd4f82b217b53eabc63ca41b7ad73c.tar.bz2
Change to write (create) setting+subid if it does not already exist
when it is queried for the first time. Bug: 18791109 Change-Id: Ib9dae9401a18f1ec0eb0477486c7c7e4cb0364b0
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index d0ddeac..c421800 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -3639,6 +3639,8 @@ public class TelephonyManager {
} catch (SettingNotFoundException e) {
try {
int val = Settings.Global.getInt(cr, name);
+ Settings.Global.putInt(cr, name + subId, val);
+
/* We are now moving from 'setting' to 'setting+subId', and using the value stored
* for 'setting' as default. Reset the default (since it may have a user set
* value). */