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

Commit 004432a1 authored by yujinjeong's avatar yujinjeong Committed by YUJIN JEONG
Browse files

Remove condition that is unnecessary from isDataRoamingFromUserAction().



This DEVICE_PROVISIONED dependency is unnecessary from isDataRoamingFromUserAction().

Test: Checked that Phone.DATA_ROAMING_IS_USER_SETTING_KEY is set correctly.

Change-Id: I7725e9d754887c77ecdb37e46446ab3b3f8a860a
Signed-off-by: default avataryujinjeong <yujin.jeong@samsung.com>
parent 292525de
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2547,8 +2547,7 @@ public class DcTracker extends Handler {
        // since we don't want to unset user preference from system update, pass true as the default
        // value if shared pref does not exist and set shared pref to false explicitly from factory
        // reset.
        if (!sp.contains(Phone.DATA_ROAMING_IS_USER_SETTING_KEY)
                && Settings.Global.getInt(mResolver, Settings.Global.DEVICE_PROVISIONED, 0) == 0) {
        if (!sp.contains(Phone.DATA_ROAMING_IS_USER_SETTING_KEY)) {
            sp.edit().putBoolean(Phone.DATA_ROAMING_IS_USER_SETTING_KEY, false).commit();
        }
        return sp.getBoolean(Phone.DATA_ROAMING_IS_USER_SETTING_KEY, true);