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

Commit 6231e3a7 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am ef1f21b3: Merge change 6231 into donut

Merge commit 'ef1f21b3'

* commit 'ef1f21b3':
  Don't trim() in the mediascanner, as that would remove the special "sort first" character.
parents 19c91374 ef1f21b3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -550,7 +550,10 @@ public class MediaScanner
                                
        public void handleStringTag(String name, String value) {
            if (name.equalsIgnoreCase("title") || name.startsWith("title;")) {
                mTitle = value.trim();
                // Don't trim() here, to preserve the special \001 character
                // used to force sorting. The media provider will trim() before
                // inserting the title in to the database.
                mTitle = value;
            } else if (name.equalsIgnoreCase("artist") || name.startsWith("artist;")) {
                mArtist = value.trim();
            } else if (name.equalsIgnoreCase("albumartist") || name.startsWith("albumartist;")) {