diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2015-01-08 13:50:23 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-01-14 19:36:06 -0800 |
commit | 078fa1b9f59dd8d6b72b3d86f0274c6ff0f20a27 (patch) | |
tree | 917f6feb28604f4d9ac806b81db2d803abe33164 /src | |
parent | c300a39b471a09670f4e3c738b5a7eb7a37c3ac1 (diff) | |
download | android_packages_apps_Gallery2-078fa1b9f59dd8d6b72b3d86f0274c6ff0f20a27.tar.gz android_packages_apps_Gallery2-078fa1b9f59dd8d6b72b3d86f0274c6ff0f20a27.tar.bz2 android_packages_apps_Gallery2-078fa1b9f59dd8d6b72b3d86f0274c6ff0f20a27.zip |
Gallery2: Set read only image unEditable
When get the flag mReadOnlyView true, the menu item of edit is set
true, which is not reasonable.
Set the menu item of edit false if read only.
CRs-Fixed: 768257
Change-Id: I88fb9a76036699b686ec14568ff54aba5523c5ec
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/android/gallery3d/app/PhotoPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index bfd4528e4..07a07508d 100755 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -819,7 +819,7 @@ public abstract class PhotoPage extends ActivityState implements int supportedOperations = mCurrentPhoto.getSupportedOperations(); if (mReadOnlyView) { - supportedOperations ^= MediaObject.SUPPORT_EDIT; + supportedOperations &= ~MediaObject.SUPPORT_EDIT; } if (mSecureAlbum != null) { supportedOperations &= MediaObject.SUPPORT_DELETE; |