diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 35c5bdb..95100ae 100755
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -202,6 +202,10 @@ public abstract class PhotoPage extends ActivityState implements
private int mLastSystemUiVis = 0;
+ boolean mIsSingleItemOnly = false;
+
private final PanoramaSupportCallback mUpdatePanoramaMenuItemsCallback = new PanoramaSupportCallback() {
@Override
public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama,
@@ -584,6 +588,9 @@ public abstract class PhotoPage extends ActivityState implements
MediaItem mediaItem = (MediaItem)
mActivity.getDataManager().getMediaObject(itemPath);
mModel = new SinglePhotoDataAdapter(mActivity, mPhotoView, mediaItem);
+ mIsSingleItemOnly = true;
mPhotoView.setModel(mModel);
updateCurrentPhoto(mediaItem);
mShowSpinner = false;
@@ -845,6 +852,10 @@ public abstract class PhotoPage extends ActivityState implements
supportedOperations &= ~MediaObject.SUPPORT_EDIT;
}
}
+ if (mIsSingleItemOnly==true)
+ supportedOperations &= ~MediaObject.SUPPORT_ROTATE;
MenuExecutor.updateMenuOperation(menu, supportedOperations);
}
index 35c5bdb..95100ae 100755
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -202,6 +202,10 @@ public abstract class PhotoPage extends ActivityState implements
private int mLastSystemUiVis = 0;
+ boolean mIsSingleItemOnly = false;
+
private final PanoramaSupportCallback mUpdatePanoramaMenuItemsCallback = new PanoramaSupportCallback() {
@Override
public void panoramaInfoAvailable(MediaObject mediaObject, boolean isPanorama,
@@ -584,6 +588,9 @@ public abstract class PhotoPage extends ActivityState implements
MediaItem mediaItem = (MediaItem)
mActivity.getDataManager().getMediaObject(itemPath);
mModel = new SinglePhotoDataAdapter(mActivity, mPhotoView, mediaItem);
+ mIsSingleItemOnly = true;
mPhotoView.setModel(mModel);
updateCurrentPhoto(mediaItem);
mShowSpinner = false;
@@ -845,6 +852,10 @@ public abstract class PhotoPage extends ActivityState implements
supportedOperations &= ~MediaObject.SUPPORT_EDIT;
}
}
+ if (mIsSingleItemOnly==true)
+ supportedOperations &= ~MediaObject.SUPPORT_ROTATE;
MenuExecutor.updateMenuOperation(menu, supportedOperations);
}