diff options
-rw-r--r-- | core/java/android/provider/Settings.java | 14 | ||||
-rw-r--r-- | core/res/res/values/config.xml | 5 |
2 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 1c65617..0f3b528 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1258,6 +1258,16 @@ public final class Settings { public static final String COMPATIBILITY_MODE = "compatibility_mode"; /** + * Enable fade in animation. + */ + public static final String ELECTRON_BEAM_ANIMATION_ON = "electron_beam_animation_on"; + + /** + * Enable fade out animation. + */ + public static final String ELECTRON_BEAM_ANIMATION_OFF = "electron_beam_animation_off"; + + /** * The screen backlight brightness between 0 and 255. */ public static final String SCREEN_BRIGHTNESS = "screen_brightness"; @@ -2489,7 +2499,9 @@ public final class Settings { QUIET_HOURS_STILL, QUIET_HOURS_DIM, LOCKSCREEN_GESTURES_SENSITIVITY, - LOCKSCREEN_GESTURES_COLOR + LOCKSCREEN_GESTURES_COLOR, + ELECTRON_BEAM_ANIMATION_ON, + ELECTRON_BEAM_ANIMATION_OFF, }; // Settings moved to Settings.Secure diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 048e214..131e86a 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -20,6 +20,11 @@ <!-- These resources are around just to allow their values to be customized for different hardware and product builds. --> <resources> + <!-- If this is true, the screen will fade off. --> + <bool name="config_animateScreenLights">true</bool> + <bool name="config_enableScreenOnAnimation">true</bool> + <bool name="config_enableScreenOffAnimation">true</bool> + <!-- Flag indicating whether the surface flinger has limited alpha compositing functionality in hardware. If set, the window manager will disable alpha trasformation in animations where not |