Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c1e566f authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

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

* commit 'c8db3b8a':
  Set "isdrm" info in Mediastore
parents 57ebeed6 c8db3b8a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;