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

Commit 9a35057e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Modify player metadata sync checking logic" into tm-dev

parents f8fad9d6 b0c57563
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -252,6 +252,14 @@ public class MediaPlayerWrapper {
                    Log.d(TAG, "  └ Current queueItem: " + qitem);
                    Log.d(TAG, "  └ Current metadata : " + mdata);
                }

                // Some player do not provide full song info in queue item, allow case
                // that only title and artist match.
                if (Objects.equals(qitem.title, mdata.title)
                        && Objects.equals(qitem.artist, mdata.artist)) {
                    Log.d(TAG, mPackageName + " Only Title and Artist info sync for metadata");
                    return true;
                }
                return false;
            }
        }