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

Commit c070cd73 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

Allow setting a per-device default configuration for STATUS_BAR_BATTERY

Batteryless devices (like TV-connected mediacenters/STBs) don't need
the battery icon there at all.

Change-Id: Iac7e1b0b813c260bc78f4733409a30da7bda248d

Conflicts:
	packages/SettingsProvider/res/values/defaults.xml
parent 50473fb0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -173,4 +173,6 @@
         0 means no timeout; battery sounds will always play
         >0 is milliseconds of screen-off time after which battery sounds will not play -->
    <integer name="def_low_battery_sound_timeout">0</integer>
    <!-- Default for Settings.System.STATUS_BAR_BATTERY -->
    <integer name="def_battery_style">0</integer>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -2004,6 +2004,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {

            loadIntegerSetting(stmt, Settings.System.POINTER_SPEED,
                    R.integer.def_pointer_speed);

            loadIntegerSetting(stmt, Settings.System.STATUS_BAR_BATTERY,
                    R.integer.def_battery_style);
        } finally {
            if (stmt != null) stmt.close();
        }