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

Commit ca7db0aa authored by narinder Rana's avatar narinder Rana
Browse files

update def_clock_position in notch devices

parent 53c2cb4c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -117,5 +117,6 @@
         * 2: show the clock in the left position (LTR)
    -->
    <integer name="def_clock_position">1</integer>
    <integer name="def_clock_position_notch">2</integer>

</resources>
+11 −2
Original line number Diff line number Diff line
@@ -626,8 +626,17 @@ 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_haveHigherAspectRatioScreen)){

                loadIntegerSetting(stmt, LineageSettings.System.STATUS_BAR_CLOCK,
                        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,