summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorParamananda <parama@codeaurora.org>2015-03-24 18:06:39 +0530
committerParamananda Pradhan <parama@codeaurora.org>2015-04-06 17:01:22 +0530
commite45ba22d0350a0ba7ab382bde1f0dbd72ec70675 (patch)
tree733bb624b282db86b5d1b4da81db17936572fbe6 /src
parentfba9836dc0c9959cb5728828c4fdc8e142d21fca (diff)
downloadandroid_packages_apps_Gallery2-e45ba22d0350a0ba7ab382bde1f0dbd72ec70675.tar.gz
android_packages_apps_Gallery2-e45ba22d0350a0ba7ab382bde1f0dbd72ec70675.tar.bz2
android_packages_apps_Gallery2-e45ba22d0350a0ba7ab382bde1f0dbd72ec70675.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')
-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;