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

Commit 78b2a922 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

parents cb64b3b6 aba2a8a4
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";