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

Commit a534cbdf authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

SystemUI: Use Settings.Global.getInt to read global settings

Settings.Global.getInt should be used instead of Settings.Secure.getInt
to read global settings.

Change-Id: Icf8b9b2c9f04d4a111e5cc165e090aeb996f91b1
parent e824a0c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ public class MobileNetworkTypeTile extends QuickSettingsTile {
    private static int get2G3G(Context context) {
        int state = 99;
        try {
            state = Settings.Secure.getInt(context.getContentResolver(),
            state = Settings.Global.getInt(context.getContentResolver(),
                    Settings.Global.PREFERRED_NETWORK_MODE);
        } catch (SettingNotFoundException e) {
        }
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ public class NetworkModeButton extends PowerButton{
    private static int get2G3G(Context context) {
        int state = 99;
        try {
            state = Settings.Secure.getInt(context.getContentResolver(),
            state = Settings.Global.getInt(context.getContentResolver(),
                    Settings.Global.PREFERRED_NETWORK_MODE);
        } catch (SettingNotFoundException e) {
        }