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

Commit 95e30ee9 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Steve Kondik
Browse files

Allow setting a per-device default configuration for STATUS_BAR_BATTERY_STYLE

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

Change-Id: Iac7e1b0b813c260bc78f4733409a30da7bda248d
parent 6186ccb5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -222,4 +222,7 @@
    <!-- Default for Settings.Secure.STATS_COLLECTION. -->
    <bool name="def_cm_stats_collection">false</bool>

    <!-- Default for Settings.System.STATUS_BAR_BATTERY_STYLE -->
    <integer name="def_battery_style">0</integer>

</resources>
+3 −0
Original line number Diff line number Diff line
@@ -2356,6 +2356,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            loadIntegerSetting(stmt, Settings.System.STATUS_BAR_NOTIF_COUNT,
                    R.integer.def_notif_count);

            loadIntegerSetting(stmt, Settings.System.STATUS_BAR_BATTERY_STYLE,
                    R.integer.def_battery_style);

        } finally {
            if (stmt != null) stmt.close();
        }