summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/WideAnglePanoramaModule.java
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-10-14 12:06:20 -0700
committerDoris Liu <tianliu@google.com>2013-10-14 12:06:20 -0700
commit352b014552d77948193d84ec177c7673552eb1ee (patch)
treefd6023c568c1ae31cb2047a334b4094065c99291 /src/com/android/camera/WideAnglePanoramaModule.java
parentae1697302b4ef59bbfebdf1127bc73531ce550b7 (diff)
downloadandroid_packages_apps_Snap-352b014552d77948193d84ec177c7673552eb1ee.tar.gz
android_packages_apps_Snap-352b014552d77948193d84ec177c7673552eb1ee.tar.bz2
android_packages_apps_Snap-352b014552d77948193d84ec177c7673552eb1ee.zip
Fix SRI upside down preview in reverse landscape and reverse portrait
Also make sure preview is not upside down after device flip, and fix camera controls jiggering during rotation Bug: 11216647 Bug: 11174540 Change-Id: I764e5b86549fa87c2224d8e85ff06f57f0a315d1
Diffstat (limited to 'src/com/android/camera/WideAnglePanoramaModule.java')
-rw-r--r--src/com/android/camera/WideAnglePanoramaModule.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/camera/WideAnglePanoramaModule.java b/src/com/android/camera/WideAnglePanoramaModule.java
index 189bf99d1..91c3049c6 100644
--- a/src/com/android/camera/WideAnglePanoramaModule.java
+++ b/src/com/android/camera/WideAnglePanoramaModule.java
@@ -454,7 +454,7 @@ public class WideAnglePanoramaModule
final boolean isLandscape =
(mActivity.getResources().getConfiguration().orientation ==
Configuration.ORIENTATION_LANDSCAPE);
-
+ mUI.flipPreviewIfNeeded();
MosaicPreviewRenderer renderer = new MosaicPreviewRenderer(
mUI.getSurfaceTexture(),
mPreviewUIWidth, mPreviewUIHeight, isLandscape);
@@ -819,6 +819,7 @@ public class WideAnglePanoramaModule
mWaitProcessorTask = null;
}
resetScreenOn();
+ mUI.removeDisplayChangeListener();
if (mSoundPlayer != null) {
mSoundPlayer.release();
mSoundPlayer = null;
@@ -879,7 +880,7 @@ public class WideAnglePanoramaModule
boolean recordLocation = RecordLocationPreference.get(mPreferences,
mContentResolver);
mLocationManager.recordLocation(recordLocation);
-
+ mUI.initDisplayChangeListener();
UsageStatistics.onContentViewChanged(
UsageStatistics.COMPONENT_CAMERA, "PanoramaModule");
}