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

Commit aba2a8a4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Return current song id if active quene item id is not avaliable"

parents e487d777 9aea99cc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -385,10 +385,10 @@ public class AvrcpTargetService extends ProfileService {

    String getCurrentMediaId() {
        String id = mMediaPlayerList.getCurrentMediaId();
        if (id != null) return id;
        if (id != null && !id.isEmpty()) return id;

        Metadata song = getCurrentSongInfo();
        if (song != null) return song.mediaId;
        if (song != null && !song.mediaId.isEmpty()) return song.mediaId;

        // We always want to return something, the error string just makes debugging easier
        return "error";