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

Commit 687e9a1b authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Gerrit Code Review
Browse files

Merge "Remove emulator specific code around STAY_ON_WHILE_PLUGGED_IN" into main

parents 6a5b04b2 fbc916ca
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -2432,9 +2432,7 @@ class DatabaseHelper extends SQLiteOpenHelper {
                    R.bool.def_auto_time_zone); // Sync timezone to NITZ
                    R.bool.def_auto_time_zone); // Sync timezone to NITZ


            loadSetting(stmt, Settings.Global.STAY_ON_WHILE_PLUGGED_IN,
            loadSetting(stmt, Settings.Global.STAY_ON_WHILE_PLUGGED_IN,
                    ("1".equals(SystemProperties.get("ro.boot.qemu"))
                    res.getBoolean(R.bool.def_stay_on_while_plugged_in) ? 1 : 0);
                        || res.getBoolean(R.bool.def_stay_on_while_plugged_in))
                     ? 1 : 0);


            loadIntegerSetting(stmt, Settings.Global.WIFI_SLEEP_POLICY,
            loadIntegerSetting(stmt, Settings.Global.WIFI_SLEEP_POLICY,
                    R.integer.def_wifi_sleep_policy);
                    R.integer.def_wifi_sleep_policy);