OSDN Git Service

Fix RemoteControlStackEntry constructor in AudioService
authorJean-Michel Trivi <jmtrivi@google.com>
Sat, 30 Mar 2013 19:35:51 +0000 (12:35 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Sat, 30 Mar 2013 19:35:51 +0000 (12:35 -0700)
Add missing call to constructor of RccPlaybackState to initialize
 the mPlaybackState field of the RemoteControlStackEntry class.

bug 8512601

Change-Id: I636d5c1b416d6a3d3808d5be53c9c544ab293732

media/java/android/media/AudioService.java

index 32c1406..9ded922 100644 (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();
         }