am c8db3b8a: Merge "Set "isdrm" info in Mediastore"

* commit 'c8db3b8ae34c76430e8e97418e485dedc44d0954':
  Set "isdrm" info in Mediastore
This commit is contained in:
James Dong
2012-12-21 14:42:37 -08:00
committed by Android Git Automerger

View File

@@ -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;