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:
parent
3eadcaf39c
commit
02e3d0d63d
@ -45,7 +45,6 @@ import android.os.Process;
|
|||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -744,6 +743,7 @@ public class MirrorLinkMediaBrowserService extends MediaBrowserService
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onMediaChange() {
|
public void onMediaChange() {
|
||||||
|
setSong(0, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void recreate() {
|
public void recreate() {
|
||||||
@ -785,10 +785,4 @@ public class MirrorLinkMediaBrowserService extends MediaBrowserService
|
|||||||
// updatePlaybackState(error);
|
// updatePlaybackState(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onMediaChanged() {
|
|
||||||
if(PlaybackService.hasInstance()) {
|
|
||||||
setSong(0,PlaybackService.get(this).getSong(0));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user