Fix RemoteControlStackEntry constructor in AudioService
Add missing call to constructor of RccPlaybackState to initialize the mPlaybackState field of the RemoteControlStackEntry class. bug 8512601 Change-Id: I636d5c1b416d6a3d3808d5be53c9c544ab293732
This commit is contained in:
@ -5107,6 +5107,10 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
|
||||
mCallingUid = -1;
|
||||
mRcClient = null;
|
||||
mRccId = ++sLastRccId;
|
||||
mPlaybackState = new RccPlaybackState(
|
||||
RemoteControlClient.PLAYSTATE_STOPPED,
|
||||
RemoteControlClient.PLAYBACK_POSITION_INVALID,
|
||||
RemoteControlClient.PLAYBACK_SPEED_1X);
|
||||
|
||||
resetPlaybackInfo();
|
||||
}
|
||||
|
Reference in New Issue
Block a user