diff options
author | Paramananda Pradhan <parama@codeaurora.org> | 2014-12-14 17:27:31 +0530 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2015-09-15 21:31:49 +0100 |
commit | 829f9ad8c06070038cdef24e5fac76a8a16f841b (patch) | |
tree | 80fb1a7700307bb833226e04e5547f91f86f374a /src/com/android/gallery3d/filtershow/crop/CropActivity.java | |
parent | a5aa75d6ac958822e145b61e7c475bd1dc1b5260 (diff) | |
download | android_packages_apps_Gallery2-829f9ad8c06070038cdef24e5fac76a8a16f841b.tar.gz android_packages_apps_Gallery2-829f9ad8c06070038cdef24e5fac76a8a16f841b.tar.bz2 android_packages_apps_Gallery2-829f9ad8c06070038cdef24e5fac76a8a16f841b.zip |
Gallery2: Make Gallery2 support OMADRM feature
- Make Gallery2 can recognize and consume DRM images and videos.
Change-Id: I1655d295bcec31b5760c2c86c06f815cf6ed57ee
Diffstat (limited to 'src/com/android/gallery3d/filtershow/crop/CropActivity.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/crop/CropActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/crop/CropActivity.java b/src/com/android/gallery3d/filtershow/crop/CropActivity.java index 94c859333..21b283eed 100644 --- a/src/com/android/gallery3d/filtershow/crop/CropActivity.java +++ b/src/com/android/gallery3d/filtershow/crop/CropActivity.java @@ -115,6 +115,12 @@ public class CropActivity extends Activity { @Override public void onClick(View view) { startFinishOutput(); + if (mCropExtras != null && mCropExtras.getSetAsWallpaper()) { + Intent intent = new Intent("android.drmservice.intent.action.SET_WALLPAPER"); + intent.putExtra("DRM_TYPE", "OMAV1"); + intent.putExtra("DRM_FILE_PATH", mSourceUri.toString()); + CropActivity.this.sendBroadcast(intent); + } } }); } |