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

Commit d58fbe09 authored by Amit Mahajan's avatar Amit Mahajan Committed by Natiq Ahmed
Browse files

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
parent 9ef9d4b5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3733,6 +3733,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). */