summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorParamananda <parama@codeaurora.org>2015-04-13 15:51:51 +0530
committerRicardo Cerqueira <ricardo@cyngn.com>2015-09-18 17:56:09 +0100
commit704bff736bda2bc5f6c5aa2956879f55101191f5 (patch)
tree4512e82e933d28e2bbdadeeedcdb4fc62302d038 /src
parentea87a93df185b9f8c1e477188b55a2fe97dc983e (diff)
downloadandroid_packages_apps_Gallery2-704bff736bda2bc5f6c5aa2956879f55101191f5.zip
android_packages_apps_Gallery2-704bff736bda2bc5f6c5aa2956879f55101191f5.tar.gz
android_packages_apps_Gallery2-704bff736bda2bc5f6c5aa2956879f55101191f5.tar.bz2
Gallery2 : Delete and Details options are not visible on Camera preview
Added SUPPORT_DELETE and SUPPRT_INFO option on option item of image preview screen. CRs-Fixed: 819964 Change-Id: If8bbc702073d7193afb445feaa08d766886d3f22
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/data/LocalImage.java4
-rw-r--r--src/com/android/gallery3d/data/UriImage.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/data/LocalImage.java b/src/com/android/gallery3d/data/LocalImage.java
index 67e8071..1b03845 100644
--- a/src/com/android/gallery3d/data/LocalImage.java
+++ b/src/com/android/gallery3d/data/LocalImage.java
@@ -266,8 +266,8 @@ public class LocalImage extends LocalMediaItem {
operation |= SUPPORT_SHARE;
}
} else {
- operation = SUPPORT_SHARE | SUPPORT_CROP | SUPPORT_PRINT | SUPPORT_SETAS;
-
+ operation = SUPPORT_DELETE | SUPPORT_SHARE | SUPPORT_CROP
+ | SUPPORT_SETAS | SUPPORT_PRINT | SUPPORT_INFO;
if (BitmapUtils.isSupportedByRegionDecoder(mimeType)) {
operation |= SUPPORT_FULL_IMAGE | SUPPORT_EDIT;
}
diff --git a/src/com/android/gallery3d/data/UriImage.java b/src/com/android/gallery3d/data/UriImage.java
index 0cc1140..13176e4 100644
--- a/src/com/android/gallery3d/data/UriImage.java
+++ b/src/com/android/gallery3d/data/UriImage.java
@@ -233,8 +233,8 @@ public class UriImage extends MediaItem {
supported |= SUPPORT_SHARE;
}
} else {
- if (isSharable())
- supported |= SUPPORT_SHARE | SUPPORT_PRINT | SUPPORT_SETAS;
+ supported = SUPPORT_PRINT | SUPPORT_SETAS;
+ if (isSharable()) supported |= SUPPORT_SHARE;
if (BitmapUtils.isSupportedByRegionDecoder(mContentType)) {
supported |= SUPPORT_EDIT | SUPPORT_FULL_IMAGE;
}