Loading android/app/src/com/android/bluetooth/avrcp/AvrcpTargetService.java +1 −2 Original line number Diff line number Diff line Loading @@ -607,8 +607,7 @@ public class AvrcpTargetService extends ProfileService { Metadata newMetadata = newQueue.get(index); if (!Objects.equals(currentMetadata.title, newMetadata.title) || !Objects.equals(currentMetadata.artist, newMetadata.artist) || !Objects.equals(currentMetadata.album, newMetadata.album)) { || !Objects.equals(currentMetadata.artist, newMetadata.artist)) { return true; } } Loading android/app/tests/unit/src/com/android/bluetooth/avrcp/AvrcpTargetServiceTest.java +1 −4 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ public class AvrcpTargetServiceTest { assertThat(AvrcpTargetService.isQueueUpdated(firstQueue, secondQueue)).isTrue(); firstQueue.add(createEmptyMetadata()); firstQueue.get(1).album = TEST_DATA; firstQueue.get(1).genre = TEST_DATA; firstQueue.get(1).mediaId = TEST_DATA; firstQueue.get(1).trackNum = TEST_DATA; Loading @@ -68,10 +69,6 @@ public class AvrcpTargetServiceTest { secondQueue.set(1, createEmptyMetadata()); secondQueue.get(1).artist = TEST_DATA; assertThat(AvrcpTargetService.isQueueUpdated(firstQueue, secondQueue)).isTrue(); secondQueue.set(1, createEmptyMetadata()); secondQueue.get(1).album = TEST_DATA; assertThat(AvrcpTargetService.isQueueUpdated(firstQueue, secondQueue)).isTrue(); } private Metadata createEmptyMetadata() { Loading Loading
android/app/src/com/android/bluetooth/avrcp/AvrcpTargetService.java +1 −2 Original line number Diff line number Diff line Loading @@ -607,8 +607,7 @@ public class AvrcpTargetService extends ProfileService { Metadata newMetadata = newQueue.get(index); if (!Objects.equals(currentMetadata.title, newMetadata.title) || !Objects.equals(currentMetadata.artist, newMetadata.artist) || !Objects.equals(currentMetadata.album, newMetadata.album)) { || !Objects.equals(currentMetadata.artist, newMetadata.artist)) { return true; } } Loading
android/app/tests/unit/src/com/android/bluetooth/avrcp/AvrcpTargetServiceTest.java +1 −4 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ public class AvrcpTargetServiceTest { assertThat(AvrcpTargetService.isQueueUpdated(firstQueue, secondQueue)).isTrue(); firstQueue.add(createEmptyMetadata()); firstQueue.get(1).album = TEST_DATA; firstQueue.get(1).genre = TEST_DATA; firstQueue.get(1).mediaId = TEST_DATA; firstQueue.get(1).trackNum = TEST_DATA; Loading @@ -68,10 +69,6 @@ public class AvrcpTargetServiceTest { secondQueue.set(1, createEmptyMetadata()); secondQueue.get(1).artist = TEST_DATA; assertThat(AvrcpTargetService.isQueueUpdated(firstQueue, secondQueue)).isTrue(); secondQueue.set(1, createEmptyMetadata()); secondQueue.get(1).album = TEST_DATA; assertThat(AvrcpTargetService.isQueueUpdated(firstQueue, secondQueue)).isTrue(); } private Metadata createEmptyMetadata() { Loading