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

Commit 54b1a772 authored by Chirayu Desai's avatar Chirayu Desai Committed by Steve Kondik
Browse files

SettingsProvider: Initialize defaults for CM features

Add configuration defaults for:
- status bar notification count
- QuickSettings quick pulldown
- lockscreen targets

Change-Id: Ief4b97fcceea7e351a13d59136a2fb1823d97b04
parent 2ab3ff3a
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -182,4 +182,16 @@

    <!-- Default for Settings.Global.TETHER_DUN_REQUIRED -->
    <integer name="def_tether_dun_required">0</integer>

    <!-- Default for Settings.System.STATUS_BAR_NOTIF_COUNT. -->
   <integer name="def_notif_count">0</integer>

    <!-- Default for Settings.System.QS_QUICK_PULLDOWN.
    0. Off
    1. Right
    2. Left -->
    <integer name="def_qs_quick_pulldown">0</integer>

    <!-- Default for Settings.System.LOCKSCREEN_TARGETS. -->
    <string name="def_lockscreen_targets" translatable="false"></string>
</resources>
+9 −0
Original line number Diff line number Diff line
@@ -2019,6 +2019,15 @@ public class DatabaseHelper extends SQLiteOpenHelper {

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

            loadIntegerSetting(stmt, Settings.System.STATUS_BAR_NOTIF_COUNT,
                    R.integer.def_notif_count);

            loadIntegerSetting(stmt, Settings.System.QS_QUICK_PULLDOWN,
                    R.integer.def_qs_quick_pulldown);

            loadStringSetting(stmt, Settings.System.LOCKSCREEN_TARGETS,
                    R.string.def_lockscreen_targets);
        } finally {
            if (stmt != null) stmt.close();
        }