set media session as active after creation
This commit is contained in:
parent
479b9203ba
commit
fdbef8d8cb
@ -73,6 +73,7 @@ public class MediaSessionTracker {
|
||||
public void onSeekTo(long pos) {
|
||||
PlaybackService.get(mContext).seekToPosition((int)pos);
|
||||
}});
|
||||
mMediaSession.setActive(true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -86,6 +87,7 @@ public class MediaSessionTracker {
|
||||
* Cleans up the underlying media session
|
||||
*/
|
||||
public void release() {
|
||||
mMediaSession.setActive(false);
|
||||
mMediaSession.release();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user