summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorParamananda <parama@codeaurora.org>2015-03-24 18:06:39 +0530
committerRicardo Cerqueira <ricardo@cyngn.com>2015-09-15 21:31:49 +0100
commitb00985f4de70444fa5ece9e8a78a79e73f4475b1 (patch)
tree2eb24391f8ce6e0f7bd483ad9a4471fcc1daf5e6 /src/com
parent4f3e49619d3954056f899660cc764f3773d92141 (diff)
downloadandroid_packages_apps_Gallery2-b00985f4de70444fa5ece9e8a78a79e73f4475b1.tar.gz
android_packages_apps_Gallery2-b00985f4de70444fa5ece9e8a78a79e73f4475b1.tar.bz2
android_packages_apps_Gallery2-b00985f4de70444fa5ece9e8a78a79e73f4475b1.zip
Gallery2 : Drm file can be set as wallpaper
- Only DRM FL file can be set as device wallpaper. Other licenseable files like CD and SD can not be allow for wallpaper because after license expaired we can not revert wallpaper to default. CRs-Fixed: 804190 Change-Id: I42f501b6a06a057765f80a6a124970bec6619e85
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/data/LocalImage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/LocalImage.java b/src/com/android/gallery3d/data/LocalImage.java
index c4524854d..67e8071d3 100644
--- a/src/com/android/gallery3d/data/LocalImage.java
+++ b/src/com/android/gallery3d/data/LocalImage.java
@@ -257,6 +257,10 @@ public class LocalImage extends LocalMediaItem {
public int getSupportedOperations() {
int operation = SUPPORT_DELETE | SUPPORT_INFO;
if (DrmHelper.isDrmFile(getFilePath())) {
+ if (DrmHelper.isDrmFLBlocking(mApplication.getAndroidContext(),
+ getFilePath())) {
+ operation |= SUPPORT_SETAS;
+ }
operation |= SUPPORT_DRM_INFO | SUPPORT_FULL_IMAGE;
if (DrmHelper.isShareableDrmFile(getFilePath())) {
operation |= SUPPORT_SHARE;