summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/OrientationManager.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-05-03 11:41:05 +0800
committerChih-Chung Chang <chihchung@google.com>2012-05-03 18:28:03 +0800
commitaeb3062e84ed28f0e25a73f511f287ae0a3e4294 (patch)
tree80fe14074374dbc010fa51eed027e2b2a1c1fee4 /src/com/android/gallery3d/app/OrientationManager.java
parent61f94714c3702115d2f89bb5f8829697be0c3680 (diff)
downloadandroid_packages_apps_Gallery2-aeb3062e84ed28f0e25a73f511f287ae0a3e4294.tar.gz
android_packages_apps_Gallery2-aeb3062e84ed28f0e25a73f511f287ae0a3e4294.tar.bz2
android_packages_apps_Gallery2-aeb3062e84ed28f0e25a73f511f287ae0a3e4294.zip
Fix NPE in onFullScreenChanged message handler.
Bug: 6430929 Also tweak the timing of showing action bar and the timing of unlock orientation. Change-Id: I1af4703ccf99f5257e9724a20d0aa216d20e13c2
Diffstat (limited to 'src/com/android/gallery3d/app/OrientationManager.java')
-rw-r--r--src/com/android/gallery3d/app/OrientationManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/OrientationManager.java b/src/com/android/gallery3d/app/OrientationManager.java
index 93a1fc506..a54f66840 100644
--- a/src/com/android/gallery3d/app/OrientationManager.java
+++ b/src/com/android/gallery3d/app/OrientationManager.java
@@ -109,6 +109,10 @@ public class OrientationManager {
disableCompensation();
}
+ public boolean isOrientationLocked() {
+ return mOrientationLocked;
+ }
+
// Calculate the compensation value and send it to listeners.
private void updateCompensation() {
if (mOrientation == OrientationEventListener.ORIENTATION_UNKNOWN) {