Fix MirrorLinkMediaService's onMediaChange() use.

onMediaChanged was implemented, but nobody calls that, so let the correct function implement the logic.
This commit is contained in:
Adrian Ulrich 2017-12-17 12:08:02 +01:00
parent 3eadcaf39c
commit 02e3d0d63d

View File

@ -45,7 +45,6 @@ import android.os.Process;
import android.os.SystemClock;
import android.util.Log;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@ -744,6 +743,7 @@ public class MirrorLinkMediaBrowserService extends MediaBrowserService
}
public void onMediaChange() {
setSong(0, null);
}
public void recreate() {
@ -785,10 +785,4 @@ public class MirrorLinkMediaBrowserService extends MediaBrowserService
// updatePlaybackState(error);
}
public void onMediaChanged() {
if(PlaybackService.hasInstance()) {
setSong(0,PlaybackService.get(this).getSong(0));
}
}
}