summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParamananda <parama@codeaurora.org>2015-04-16 06:02:34 (GMT)
committerRicardo Cerqueira <ricardo@cyngn.com>2015-09-18 16:54:20 (GMT)
commitea87a93df185b9f8c1e477188b55a2fe97dc983e (patch)
treea70f53b4455cd0b7ca9d6a447d36c57f5debec67
parentb00985f4de70444fa5ece9e8a78a79e73f4475b1 (diff)
downloadandroid_packages_apps_Gallery2-ea87a93df185b9f8c1e477188b55a2fe97dc983e.zip
android_packages_apps_Gallery2-ea87a93df185b9f8c1e477188b55a2fe97dc983e.tar.gz
android_packages_apps_Gallery2-ea87a93df185b9f8c1e477188b55a2fe97dc983e.tar.bz2
Gallery2 : Video share option is not working
- Issue is due to OMA DRM integration on the platform. - Added video share option on local video supported operation list. CRs-Fixed: 822784 Change-Id: Ia2a81b5f08ac02b98dd365b788d766ae3b57020e
-rw-r--r--src/com/android/gallery3d/data/LocalVideo.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/data/LocalVideo.java b/src/com/android/gallery3d/data/LocalVideo.java
index 98ae18d..7fafe97 100644
--- a/src/com/android/gallery3d/data/LocalVideo.java
+++ b/src/com/android/gallery3d/data/LocalVideo.java
@@ -190,15 +190,17 @@ public class LocalVideo extends LocalMediaItem {
@Override
public int getSupportedOperations() {
- int operation = SUPPORT_DELETE | SUPPORT_PLAY | SUPPORT_INFO | SUPPORT_TRIM | SUPPORT_MUTE;
if (DrmHelper.isDrmFile(getFilePath())) {
- operation |= SUPPORT_DRM_INFO;
+ int operation = SUPPORT_DELETE | SUPPORT_PLAY | SUPPORT_INFO
+ | SUPPORT_DRM_INFO;
if (DrmHelper.isShareableDrmFile(getFilePath())) {
operation |= SUPPORT_SHARE;
}
+ return operation;
}
- return operation;
+ return SUPPORT_DELETE | SUPPORT_SHARE | SUPPORT_PLAY | SUPPORT_INFO
+ | SUPPORT_TRIM | SUPPORT_MUTE;
}
@Override