diff options
| author | Paramananda <parama@codeaurora.org> | 2015-04-16 11:32:34 +0530 |
|---|---|---|
| committer | Paramananda Pradhan <parama@codeaurora.org> | 2015-04-16 13:02:32 +0530 |
| commit | 62ea8820f20d39767fd8472d8f1458edca3dcf0f (patch) | |
| tree | abc1aa4996b5bcfc4ea5e3a03299147136bec6ad | |
| parent | b6d1df6f74493f4ca7586fe1f755c38488e025f2 (diff) | |
| download | android_packages_apps_Gallery2-62ea8820f20d39767fd8472d8f1458edca3dcf0f.tar.gz android_packages_apps_Gallery2-62ea8820f20d39767fd8472d8f1458edca3dcf0f.tar.bz2 android_packages_apps_Gallery2-62ea8820f20d39767fd8472d8f1458edca3dcf0f.zip | |
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.java | 8 |
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 98ae18d0b..7fafe97ae 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 |
