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) {
|
public void onSeekTo(long pos) {
|
||||||
PlaybackService.get(mContext).seekToPosition((int)pos);
|
PlaybackService.get(mContext).seekToPosition((int)pos);
|
||||||
}});
|
}});
|
||||||
|
mMediaSession.setActive(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -86,6 +87,7 @@ public class MediaSessionTracker {
|
|||||||
* Cleans up the underlying media session
|
* Cleans up the underlying media session
|
||||||
*/
|
*/
|
||||||
public void release() {
|
public void release() {
|
||||||
|
mMediaSession.setActive(false);
|
||||||
mMediaSession.release();
|
mMediaSession.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user