diff options
author | Chih-Chung Chang <chihchung@google.com> | 2012-04-26 10:10:49 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2012-04-30 16:16:26 +0800 |
commit | bd141b5a51c96f6fcaddfa547f0928ce69cf0755 (patch) | |
tree | 61bfe751ed08445400977f7c2a2ec3092b43888c /src/com/android/gallery3d/app/AbstractGalleryActivity.java | |
parent | 23a5e6f233f688f2e1ca2b10b5d1c615a263e83d (diff) | |
download | android_packages_apps_Gallery2-bd141b5a51c96f6fcaddfa547f0928ce69cf0755.tar.gz android_packages_apps_Gallery2-bd141b5a51c96f6fcaddfa547f0928ce69cf0755.tar.bz2 android_packages_apps_Gallery2-bd141b5a51c96f6fcaddfa547f0928ce69cf0755.zip |
Support drawing in different orientation in Gallery.
Bug 6312994: Swipe UX: do not directly show the camera roll when camera starts
Bug 6313191: Swipe UX: Change swipe direction after the user rotated the device
Bug 6313192: Swiping UX: make Gallery display in rotated mode
Bug 6399447: Filmstrip: in Gallery, pressing Back from filmstrip doesn't perform the right animation
Bug 6399974: Filmstrip: when swiping from full-screen photo to filmstrip mode, camera view and the photo-roll don't align correctly
Bug 6400014: Swiping UX: in Camera portrait mode, tapping on the Thumbnail doesn't align camera view and the photo-roll correctly
Bug 6401075: Able to scroll through the gallery pics while capturing video.
Bug 6405087: Filmstrip does not change with orientation
Change-Id: I8c479d87800c63b7a95c199c0c1c3bc512d66d42
Diffstat (limited to 'src/com/android/gallery3d/app/AbstractGalleryActivity.java')
-rw-r--r-- | src/com/android/gallery3d/app/AbstractGalleryActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/AbstractGalleryActivity.java b/src/com/android/gallery3d/app/AbstractGalleryActivity.java index 09e72c09b..2c63e3409 100644 --- a/src/com/android/gallery3d/app/AbstractGalleryActivity.java +++ b/src/com/android/gallery3d/app/AbstractGalleryActivity.java @@ -44,6 +44,7 @@ public class AbstractGalleryActivity extends Activity implements GalleryActivity private GLRootView mGLRootView; private StateManager mStateManager; private GalleryActionBar mActionBar; + private OrientationManager mOrientationManager; private boolean mDisableToggleStatusBar; private AlertDialog mAlertDialog = null; @@ -58,6 +59,7 @@ public class AbstractGalleryActivity extends Activity implements GalleryActivity @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + mOrientationManager = new OrientationManager(this); toggleStatusBarByOrientation(); } @@ -103,6 +105,10 @@ public class AbstractGalleryActivity extends Activity implements GalleryActivity return mGLRootView; } + public OrientationManager getOrientationManager() { + return mOrientationManager; + } + @Override public void setContentView(int resId) { super.setContentView(resId); @@ -165,11 +171,13 @@ public class AbstractGalleryActivity extends Activity implements GalleryActivity mGLRootView.unlockRenderThread(); } mGLRootView.onResume(); + mOrientationManager.resume(); } @Override protected void onPause() { super.onPause(); + mOrientationManager.pause(); mGLRootView.onPause(); mGLRootView.lockRenderThread(); try { |