summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2011-02-24 16:29:27 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2011-02-24 16:34:00 +0100
commit2d2e45880c1b92288907eaf591b9a8d0e652ff5c (patch)
treeca6206e32bc446c81f96b4f6e85baeec302b1f03
parent5dbc8f9e4907a455cf187574007d34daf414479a (diff)
downloadframeworks_base-2d2e45880c1b92288907eaf591b9a8d0e652ff5c.zip
frameworks_base-2d2e45880c1b92288907eaf591b9a8d0e652ff5c.tar.gz
frameworks_base-2d2e45880c1b92288907eaf591b9a8d0e652ff5c.tar.bz2
fix rotation mode deprecations errors(cannot find symbol)
Without that fix we have errors like that: packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:108: cannot find symbol symbol : variable ACCELEROMETER_ROTATE_180 location: class android.provider.Settings.System Settings.System.ACCELEROMETER_ROTATE_180, value ? 1 : 0); This patch was taken from: http://forum.cyanogenmod.com/topic/15353-froyo-compile-cannot-find-symbol-error/ Where the user named 'bjk' posted a patch in a post in that forum patch, with the following commit message: and another build fix. dont retain multi screen rotation settings. needs to be a bitwise comparision. but who cares. Change-Id: I428a396434db245e6379580b8eaa1a1384dd156d Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
-rw-r--r--core/java/android/provider/Settings.java14
-rw-r--r--core/res/res/values/config.xml5
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