lineage-sdk: Add ACCELEROMETER_ROTATION_ANGLES to system settings
* Also add it to legacy settings so it migrates from AOSP SettingsProvider. Change-Id: Ide6ebb2205af743b8ebd03548b622fd1502c5297
This commit is contained in:
@@ -1906,6 +1906,23 @@ public final class LineageSettings {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Control the type of rotation which can be performed using the accelerometer
|
||||
* if ACCELEROMETER_ROTATION is enabled.
|
||||
* Value is a bitwise combination of
|
||||
* 1 = 0 degrees (portrait)
|
||||
* 2 = 90 degrees (left)
|
||||
* 4 = 180 degrees (inverted portrait)
|
||||
* 8 = 270 degrees (right)
|
||||
* Setting to 0 is effectively orientation lock
|
||||
* @hide
|
||||
*/
|
||||
public static final String ACCELEROMETER_ROTATION_ANGLES = "accelerometer_rotation_angles";
|
||||
|
||||
/** @hide */
|
||||
public static final Validator ACCELEROMETER_ROTATION_ANGLES_VALIDATOR =
|
||||
sNonNegativeIntegerValidator;
|
||||
|
||||
/**
|
||||
* I can haz more bukkits
|
||||
* @hide
|
||||
@@ -2011,6 +2028,7 @@ public final class LineageSettings {
|
||||
LineageSettings.System.HEADSET_CONNECT_PLAYER,
|
||||
LineageSettings.System.ZEN_ALLOW_LIGHTS,
|
||||
LineageSettings.System.TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK,
|
||||
LineageSettings.System.ACCELEROMETER_ROTATION_ANGLES,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2178,6 +2196,8 @@ public final class LineageSettings {
|
||||
TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK_VALIDATOR);
|
||||
VALIDATORS.put(DISPLAY_PICTURE_ADJUSTMENT,
|
||||
DISPLAY_PICTURE_ADJUSTMENT_VALIDATOR);
|
||||
VALIDATORS.put(ACCELEROMETER_ROTATION_ANGLES,
|
||||
ACCELEROMETER_ROTATION_ANGLES_VALIDATOR);
|
||||
VALIDATORS.put(__MAGICAL_TEST_PASSING_ENABLER,
|
||||
__MAGICAL_TEST_PASSING_ENABLER_VALIDATOR);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user