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

Commit 20c38ea9 authored by Jan Bjernler's avatar Jan Bjernler Committed by Johan Redestig
Browse files

Musicplayer application can not display DRM files of internal storage.

Make DRM-protected files transferred over MTP be detected.
Previously it was inserted into the database as MEDIA_TYPE_NONE,
the result of this was that the file was not detected properly.
With this fix the file is scanned from the beginning.

Change-Id: Idf17d39e3d529394cd4a03d71fb250e69b395533
parent 0dab1a19
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1399,7 +1399,8 @@ public class MediaScanner
        long lastModifiedSeconds = file.lastModified() / 1000;

        if (!MediaFile.isAudioFileType(fileType) && !MediaFile.isVideoFileType(fileType) &&
            !MediaFile.isImageFileType(fileType) && !MediaFile.isPlayListFileType(fileType)) {
            !MediaFile.isImageFileType(fileType) && !MediaFile.isPlayListFileType(fileType) &&
            !MediaFile.isDrmFileType(fileType)) {

            // no need to use the media scanner, but we need to update last modified and file size
            ContentValues values = new ContentValues();