summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-22 15:53:30 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-22 15:53:31 -0700
commite49d4f91b60b33c8f2f59e217916ffe4507f1714 (patch)
treebd089a16b5a23f47a9285ff3b97d1b40f92c935f /src/com/android
parentbc912f9e17b55ab815bd12081e1ceb71a2c9f424 (diff)
parent1426b538b0df7653b77b05243c422b2e155c5d14 (diff)
downloadandroid_packages_apps_Snap-e49d4f91b60b33c8f2f59e217916ffe4507f1714.tar.gz
android_packages_apps_Snap-e49d4f91b60b33c8f2f59e217916ffe4507f1714.tar.bz2
android_packages_apps_Snap-e49d4f91b60b33c8f2f59e217916ffe4507f1714.zip
Merge "Scroll to placeholder in gallery filmstrip launches camera" into gb-ub-photos-arches
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index d6c8ef481..fb4e88b2a 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -345,13 +345,22 @@ public class PhotoPage extends ActivityState implements
mMediaSet.getMediaItemCount() > 1) {
mPhotoView.switchToImage(1);
} else {
- mPhotoView.setFilmMode(false);
+ if (mAppBridge != null) mPhotoView.setFilmMode(false);
stayedOnCamera = true;
}
if (stayedOnCamera) {
- updateBars();
- updateCurrentPhoto(mModel.getMediaItem(0));
+ if (mAppBridge == null) {
+ GalleryUtils.startCameraActivity(mActivity);
+ /* We got here by swiping from photo 1 to the
+ placeholder, so make it be the thing that
+ is in focus when the user presses back from
+ the camera app */
+ mPhotoView.switchToImage(1);
+ } else {
+ updateBars();
+ updateCurrentPhoto(mModel.getMediaItem(0));
+ }
}
break;
}
@@ -579,6 +588,7 @@ public class PhotoPage extends ActivityState implements
@Override
public void onPictureCenter(boolean isCamera) {
+ isCamera = isCamera || (mInCameraRoll && mAppBridge == null);
mPhotoView.setWantPictureCenterCallbacks(false);
mHandler.removeMessages(MSG_ON_CAMERA_CENTER);
mHandler.removeMessages(MSG_ON_PICTURE_CENTER);