LineageSettingsProvider: Allow to set a default for QS brightness slider

Change-Id: Ie9003e2c14e7f5ba1b34cd7c3c7ab95a3c9501cf
This commit is contained in:
Bruno Martins
2023-10-03 21:43:49 +01:00
parent 944cb718fb
commit e2d1d6a391
2 changed files with 6 additions and 0 deletions

View File

@@ -28,6 +28,9 @@
<!-- Default for LineageSettings.Secure.VOLUME_PANEL_ON_LEFT -->
<bool name="def_volume_panel_on_left">false</bool>
<!-- Default for LineageSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER -->
<bool name="def_qs_show_brightness_slider">true</bool>
<!-- Defaults for System -->
<!-- Default for LineageSettings.System.FORCE_SHOW_NAVBAR -->

View File

@@ -404,6 +404,9 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
loadBooleanSetting(stmt, LineageSettings.Secure.VOLUME_PANEL_ON_LEFT,
R.bool.def_volume_panel_on_left);
loadBooleanSetting(stmt, LineageSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER,
R.bool.def_qs_show_brightness_slider);
} finally {
if (stmt != null) stmt.close();
}