diff options
| author | Paramananda Pradhan <parama@codeaurora.org> | 2015-05-29 11:51:41 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-05-29 00:19:34 -0700 |
| commit | f7dcfc7363247b91fd889b5d5d86b8352280020e (patch) | |
| tree | b633020cb94f6314ed446623a7694f3c722abec1 | |
| parent | 802431e0bdd23d79896f9de5e0478be40fe2b506 (diff) | |
| download | android_packages_apps_Gallery2-f7dcfc7363247b91fd889b5d5d86b8352280020e.tar.gz android_packages_apps_Gallery2-f7dcfc7363247b91fd889b5d5d86b8352280020e.tar.bz2 android_packages_apps_Gallery2-f7dcfc7363247b91fd889b5d5d86b8352280020e.zip | |
Gallery2 : Remove share option from Movie player while playing DRM video
FL and CD DRM file should not share but we can share SD DRM file, so in
MovieActivity we have removed the share option in case of FL, CD video.
CRs-Fixed: 843978
Change-Id: Ie46b895e9a37499dbd90a3f5fd2a1e4ac2234833
| -rw-r--r-- | src/com/android/gallery3d/app/MovieActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/MovieActivity.java b/src/com/android/gallery3d/app/MovieActivity.java index 9be74f4a5..0f599f303 100644 --- a/src/com/android/gallery3d/app/MovieActivity.java +++ b/src/com/android/gallery3d/app/MovieActivity.java @@ -343,6 +343,13 @@ public class MovieActivity extends Activity { public boolean onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu); mMovieHooker.onPrepareOptionsMenu(menu); + + if (mMovieItem != null + && !DrmHelper.isShareableDrmFile(DrmHelper.getFilePath(this, + mMovieItem.getUri()))) { + menu.removeItem(R.id.action_share); + } + return true; } |
