diff options
author | Doris Liu <tianliu@google.com> | 2012-11-12 15:17:36 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2012-11-12 15:57:21 -0800 |
commit | 0ce848fd66a1a55984aaf1616a0bd9da2c5bb0e7 (patch) | |
tree | 8ce3df5f34ae3f00b117d76083bdd7a3024bb4a7 /src/com/android/gallery3d/app/PhotoPage.java | |
parent | cdcdf7102a49abad68a0e3b70e7870dd2787dc66 (diff) | |
download | android_packages_apps_Snap-0ce848fd66a1a55984aaf1616a0bd9da2c5bb0e7.tar.gz android_packages_apps_Snap-0ce848fd66a1a55984aaf1616a0bd9da2c5bb0e7.tar.bz2 android_packages_apps_Snap-0ce848fd66a1a55984aaf1616a0bd9da2c5bb0e7.zip |
Fix UnsupportedOperationException in MediaObject
Bug: 6495745
Change-Id: I770833f0c3fec6f187e961f511a7d9d2591f5f97
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index da5465b93..492cdfb81 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1024,11 +1024,16 @@ public abstract class PhotoPage extends ActivityState implements refreshHidingMessage(); MediaItem current = mModel.getMediaItem(0); + // This is a shield for monkey when it clicks the action bar + // menu when transitioning from filmstrip to camera + if (current instanceof SnailItem) return true; + // TODO: We should check the current photo against the MediaItem + // that the menu was initially created for. We need to fix this + // after PhotoPage being refactored. if (current == null) { // item is not ready, ignore return true; } - int currentIndex = mModel.getCurrentIndex(); Path path = current.getPath(); |