We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65aa771 commit ae79762Copy full SHA for ae79762
wear/src/main/java/com/atomjack/wear/WearListenerService.java
@@ -106,6 +106,9 @@ public void onMessageReceived(MessageEvent messageEvent) {
106
if(dataMap.getBoolean(WearConstants.LAUNCHED, false)) {
107
finishMain();
108
}
109
+ // First, remove previous title and subtitle, if there are any
110
+ nowPlayingMedia.remove(WearConstants.MEDIA_TITLE);
111
+ nowPlayingMedia.remove(WearConstants.MEDIA_SUBTITLE);
112
nowPlayingMedia = WearApplication.getInstance().nowPlayingMedia;
113
nowPlayingMedia.putAll(dataMap);
114
nowPlayingMedia.putString(WearConstants.PLAYBACK_STATE, message.equals(WearConstants.MEDIA_PLAYING) ? PlayerState.PLAYING.name() : PlayerState.PAUSED.name());
0 commit comments