summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-12-21 14:42:37 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-21 14:42:37 -0800
commit0c1e566f97a39dd79e563afe953de8879ef66bd9 (patch)
treec4dbbeede6bc162ba5d252b9893f6d4ef54f272b /media
parent57ebeed61fd7b1a8fb8d1d8d719c10dfabd8aae4 (diff)
parentc8db3b8ae34c76430e8e97418e485dedc44d0954 (diff)
downloadframeworks_base-0c1e566f97a39dd79e563afe953de8879ef66bd9.zip
frameworks_base-0c1e566f97a39dd79e563afe953de8879ef66bd9.tar.gz
frameworks_base-0c1e566f97a39dd79e563afe953de8879ef66bd9.tar.bz2
am c8db3b8a: Merge "Set "isdrm" info in Mediastore"
* commit 'c8db3b8ae34c76430e8e97418e485dedc44d0954': Set "isdrm" info in Mediastore
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaScanner.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/java/android/media/MediaScanner.java b/media/java/android/media/MediaScanner.java
index 0117d73..0f01aae 100644
--- a/media/java/android/media/MediaScanner.java
+++ b/media/java/android/media/MediaScanner.java
@@ -441,6 +441,7 @@ public class MediaScanner
mMimeType = mimeType;
mFileType = 0;
mFileSize = fileSize;
+ mIsDrm = false;
if (!isDirectory) {
if (!noMedia && isNoMediaFile(path)) {
@@ -503,7 +504,6 @@ public class MediaScanner
mLastModified = lastModified;
mWriter = null;
mCompilation = 0;
- mIsDrm = false;
mWidth = 0;
mHeight = 0;
@@ -1039,6 +1039,7 @@ public class MediaScanner
}
if (mDrmManagerClient.canHandle(path, null)) {
+ mIsDrm = true;
String drmMimetype = mDrmManagerClient.getOriginalMimeType(path);
if (drmMimetype != null) {
mMimeType = drmMimetype;