diff options
author | James Dong <jdong@google.com> | 2012-12-21 14:42:37 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-12-21 14:42:37 -0800 |
commit | 0c1e566f97a39dd79e563afe953de8879ef66bd9 (patch) | |
tree | c4dbbeede6bc162ba5d252b9893f6d4ef54f272b /media | |
parent | 57ebeed61fd7b1a8fb8d1d8d719c10dfabd8aae4 (diff) | |
parent | c8db3b8ae34c76430e8e97418e485dedc44d0954 (diff) | |
download | frameworks_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.java | 3 |
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; |