Removed redundant setActions() for stopped playback in android.

This commit is contained in:
Swapnil Tripathi 2021-08-06 17:31:58 +05:30 committed by Tobias Fella
parent 83e6aadd96
commit 76b1d5c30d

View File

@ -38,7 +38,6 @@ public class MediaService extends Service {
mSession.setPlaybackState(mPBuilder.build());
}
case 2: {
mPBuilder.setActions(PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_STOP);
mPBuilder.setState(PlaybackStateCompat.STATE_STOPPED,
0, 1.0f);
mSession.setPlaybackState(mPBuilder.build());