diff options
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index d942a5341..408be3106 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -555,7 +555,10 @@ public class PhotoPage extends ActivityState implements private void launchPhotoEditor() { MediaItem current = mModel.getMediaItem(0); - if (current == null) return; + if (current == null || (current.getSupportedOperations() + & MediaObject.SUPPORT_EDIT) == 0) { + return; + } Intent intent = new Intent(ACTION_NEXTGEN_EDIT); intent.setData(mActivity.getDataManager().getContentUri(current.getPath())).setFlags( |