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

Commit 5627c4ae authored by Michael W's avatar Michael W
Browse files

Eleven: Fix adding a song to a playlist

* Currently the menu shows "New playlist" on top in addition to the
  positive button having the same action
* The menu item for "new playlist" is treated as if it were a playlist
  resulting in a crash due to it not being a playlist
* Remove the menu item since it's handled by the "ok" button just fine

* Test:
  - Add song to playlist
  - Only button allows adding to a new playlist

* Fixes a part of
  https://gitlab.com/LineageOS/issues/android/-/issues/3531

Change-Id: Ice781c07c812602976360fb6bf9136582b0ac592
parent e0123f84
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1327,8 +1327,6 @@ public final class MusicUtils {

        // sort the list but ignore case
        menuItemMap.sort(new IgnoreCaseComparator());
        // add new_playlist to the top of the sorted list
        menuItemMap.add(0, context.getString(R.string.new_playlist));

        return menuItemMap;
    }