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

Commit 5bbeb746 authored by narinder Rana's avatar narinder Rana
Browse files

Update clock position

parent 61f03e42
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@
         * 1: show the clock in the center
         * 2: show the clock in the left position (LTR)
    -->
    <integer name="def_clock_position">2</integer>
    <integer name="def_clock_position">1</integer>
    <integer name="def_clock_position_notch">2</integer>

</resources>
+9 −2
Original line number Diff line number Diff line
@@ -609,9 +609,16 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
            loadIntegerSetting(stmt, LineageSettings.System.STATUS_BAR_BATTERY_STYLE,
                    R.integer.def_battery_style);

            if(mContext.getResources().getBoolean(
                    org.lineageos.platform.internal.R.bool.config_haveNotch)){

                loadIntegerSetting(stmt, LineageSettings.System.STATUS_BAR_CLOCK,
                    R.integer.def_clock_position);
                        R.integer.def_clock_position_notch);

            }else {
                loadIntegerSetting(stmt, LineageSettings.System.STATUS_BAR_CLOCK,
                        R.integer.def_clock_position);
            }
            if (mContext.getResources().getBoolean(R.bool.def_notification_pulse_custom_enable)) {
                loadStringSetting(stmt, LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
                        R.string.def_notification_pulse_custom_value);