summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-09-13 22:32:37 -0700
committerBobby Georgescu <georgescu@google.com>2012-09-13 22:32:37 -0700
commit14ad4efd409887a0f4cd90e29818c8c3bd2ece8f (patch)
treefda3b889f4a7886957c6131cd6b517f17e7ee15d /src
parent292dc44db465f060bbb9ff0346ac6332c427b3fa (diff)
downloadandroid_packages_apps_Gallery2-14ad4efd409887a0f4cd90e29818c8c3bd2ece8f.tar.gz
android_packages_apps_Gallery2-14ad4efd409887a0f4cd90e29818c8c3bd2ece8f.tar.bz2
android_packages_apps_Gallery2-14ad4efd409887a0f4cd90e29818c8c3bd2ece8f.zip
Only show FX button for photos
Bug: 7165294 Change-Id: Ia35f5981cba5a69f94964a9c38361b01ea1cdbfd
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 980090898..62a80bab7 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -444,7 +444,8 @@ public class PhotoPage extends ActivityState implements
private void refreshEditButton() {
if (mEditButton == null) return;
- if(mShowBars) {
+ if (mShowBars && mCurrentPhoto != null
+ && mCurrentPhoto.getMediaType() == MediaObject.MEDIA_TYPE_IMAGE) {
mEditButton.setVisibility(View.VISIBLE);
} else {
mEditButton.setVisibility(View.GONE);
@@ -497,6 +498,7 @@ public class PhotoPage extends ActivityState implements
if (mCurrentPhoto == null) return;
updateMenuOperations();
updateTitle();
+ refreshEditButton();
if (mShowDetails) {
mDetailsHelper.reloadDetails();
}