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

Commit be52a390 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update sharedPreference to false when exits new device provisioning" into pi-dev

parents e892df7d 4e152fab
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -864,6 +864,14 @@ public class DcTracker extends Handler {
        } else {
            onCleanUpAllConnections(Phone.REASON_DATA_SPECIFIC_DISABLED);
        }
        // Update sharedPreference to false when exits new device provisioning, indicating no users
        // modifications on the settings for new devices. Thus carrier specific
        // default roaming settings can be applied for new devices till user modification.
        final SharedPreferences sp = PreferenceManager
                .getDefaultSharedPreferences(mPhone.getContext());
        if (!sp.contains(Phone.DATA_ROAMING_IS_USER_SETTING_KEY)) {
            sp.edit().putBoolean(Phone.DATA_ROAMING_IS_USER_SETTING_KEY, false).commit();
        }
    }