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

Commit a021fe8f 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
parent 24369cda
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -167,4 +167,7 @@

    <!-- Default for Settings.Secure.USER_SETUP_COMPLETE -->
    <bool name="def_user_setup_complete">false</bool>

    <!-- 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
@@ -1939,6 +1939,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();
        }