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

Commit aa240e6d authored by Hiroshi Iwata's avatar Hiroshi Iwata Committed by Steve Kondik
Browse files

Dont store video genre metadata as audio genre in MediaScanner

MediaScanner mistake Video_ID for Auido_ID when MediaScanner
register genre of mp4 video content that this content have
genre data.

Add an explicit check for audio.

Change-Id: Ic27638e9e59af44e388a8c38d774a077f23520b7
parent 00f21788
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -781,7 +781,7 @@ public class MediaScanner
                result = ContentUris.withAppendedId(tableUri, rowId);
                mMediaProvider.update(result, values, null, null);
            }
            if (mProcessGenres && mGenre != null) {
            if (mProcessGenres && mGenre != null && isAudio) {
                String genre = mGenre;
                Uri uri = mGenreCache.get(genre);
                if (uri == null) {