Browse Source

CMSettings: fix lock screen rotation toggle [3/3]

Change-Id: I2940663c7476b0df9b3553a480fa33ea4f18a5bc
replicant-6.0
Dan Pasanen 4 years ago
committed by Gerrit Code Review
parent
commit
c4becbb3f4
4 changed files with 20 additions and 0 deletions
  1. +1
    -0
      api/cm_current.txt
  2. +7
    -0
      host/migration/src/CMSettings.java
  3. +11
    -0
      sdk/src/java/cyanogenmod/providers/CMSettings.java
  4. +1
    -0
      system-api/cm_system-current.txt

+ 1
- 0
api/cm_current.txt View File

@@ -972,6 +972,7 @@ package cyanogenmod.providers {
field public static final java.lang.String QS_SHOW_BRIGHTNESS_SLIDER = "qs_show_brightness_slider";
field public static final java.lang.String RECENTS_SHOW_SEARCH_BAR = "recents_show_search_bar";
field public static final java.lang.String REVERSE_LOOKUP_PROVIDER = "reverse_lookup_provider";
field public static final java.lang.String LOCKSCREEN_ROTATION = "lockscreen_rotation";
field public static final java.lang.String SHOW_ALARM_ICON = "show_alarm_icon";
field public static final java.lang.String STATUS_BAR_AM_PM = "status_bar_am_pm";
field public static final java.lang.String STATUS_BAR_BATTERY_STYLE = "status_bar_battery_style";


+ 7
- 0
host/migration/src/CMSettings.java View File

@@ -477,6 +477,12 @@ public final class CMSettings {
"lockscreen_scramble_pin_layout";

/**
* Whether keyguard will rotate to landscape mode
* @hide
*/
public static final String LOCKSCREEN_ROTATION = "lockscreen_rotation";

/**
* @hide
*/
public static final String SHOW_ALARM_ICON = "show_alarm_icon";
@@ -685,6 +691,7 @@ public final class CMSettings {
CMSettings.System.T9_SEARCH_INPUT_LOCALE,
CMSettings.System.BLUETOOTH_ACCEPT_ALL_FILES,
CMSettings.System.LOCKSCREEN_PIN_SCRAMBLE_LAYOUT,
CMSettings.System.LOCKSCREEN_ROTATION,
CMSettings.System.SHOW_ALARM_ICON,
CMSettings.System.STATUS_BAR_IME_SWITCHER,
CMSettings.System.QS_SHOW_BRIGHTNESS_SLIDER,


+ 11
- 0
sdk/src/java/cyanogenmod/providers/CMSettings.java View File

@@ -1487,6 +1487,16 @@ public final class CMSettings {
sBooleanValidator;

/**
* Whether keyguard will rotate to landscape mode
* 0 = false, 1 = true
*/
public static final String LOCKSCREEN_ROTATION = "lockscreen_rotation";

/** @hide */
public static final Validator LOCKSCREEN_ROTATION_VALIDATOR =
sBooleanValidator;

/**
* Whether to show the alarm clock icon in the status bar.
* 0 = 0ff, 1 = on
*/
@@ -2029,6 +2039,7 @@ public final class CMSettings {
VALIDATORS.put(BLUETOOTH_ACCEPT_ALL_FILES, BLUETOOTH_ACCEPT_ALL_FILES_VALIDATOR);
VALIDATORS.put(LOCKSCREEN_PIN_SCRAMBLE_LAYOUT,
LOCKSCREEN_PIN_SCRAMBLE_LAYOUT_VALIDATOR);
VALIDATORS.put(LOCKSCREEN_ROTATION, LOCKSCREEN_ROTATION_VALIDATOR);
VALIDATORS.put(SHOW_ALARM_ICON, SHOW_ALARM_ICON_VALIDATOR);
VALIDATORS.put(STATUS_BAR_IME_SWITCHER, STATUS_BAR_IME_SWITCHER_VALIDATOR);
VALIDATORS.put(STATUS_BAR_QUICK_QS_PULLDOWN,


+ 1
- 0
system-api/cm_system-current.txt View File

@@ -972,6 +972,7 @@ package cyanogenmod.providers {
field public static final java.lang.String QS_SHOW_BRIGHTNESS_SLIDER = "qs_show_brightness_slider";
field public static final java.lang.String RECENTS_SHOW_SEARCH_BAR = "recents_show_search_bar";
field public static final java.lang.String REVERSE_LOOKUP_PROVIDER = "reverse_lookup_provider";
field public static final java.lang.String LOCKSCREEN_ROTATION = "lockscreen_rotation";
field public static final java.lang.String SHOW_ALARM_ICON = "show_alarm_icon";
field public static final java.lang.String STATUS_BAR_AM_PM = "status_bar_am_pm";
field public static final java.lang.String STATUS_BAR_BATTERY_STYLE = "status_bar_battery_style";


Loading…
Cancel
Save