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:
Jean-Michel Trivi
2013-03-30 12:35:51 -07:00
parent 9e8ba8f273
commit 6f2683698e

View File

@ -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();
}