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

Commit 98b1b3b7 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Updater: Check dev options toggle for test channel

Change-Id: Ifecac146e3f637fa589241e513a269f3306764ed
parent 47a37dfd
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ public class Utils {

        String serverUrl = "";
        if (retrieveStatus(context) != null) {
            if (retrieveStatus(context).equals("true")) {
            if (retrieveStatus(context).equals("true") && isDevModeOn(context)) {
                serverUrl = context.getString(R.string.ota_staging_server_url);
                return serverUrl.replace("{device}", device)
                        .replace("{type}", type)
@@ -477,9 +477,8 @@ public class Utils {
    }

    public static boolean isDevModeOn(Context context) {
        int devOptions = Settings.Secure.getInt(context.getContentResolver(),
                Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0);
        return devOptions == 1;
        return Settings.Secure.getInt(context.getContentResolver(),
                Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0) == 1;
    }

    public static boolean hasTouchscreen(Context context) {