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

Commit fbc916ca authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

Remove emulator specific code around STAY_ON_WHILE_PLUGGED_IN



emulator has its own provisioning app, we will set this
value there.

Bug: 314313875
Test: boot emulator, check the STAY_ON_WHILE_PLUGGED_IN value
Change-Id: I653074dd3954e8dc5dbbd4c7d136744988f32416
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
parent 357d9ae6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2432,9 +2432,7 @@ class DatabaseHelper extends SQLiteOpenHelper {
                    R.bool.def_auto_time_zone); // Sync timezone to NITZ

            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,
                    R.integer.def_wifi_sleep_policy);