Fix build break
Change-Id: I1e39cce5cd3a2c7f20390acd8c642314f30a2e9d
diff --git a/Common/src/com/googlecode/android_scripting/facade/MediaSessionFacade.java b/Common/src/com/googlecode/android_scripting/facade/MediaSessionFacade.java
index 5af0f35..9ab0591 100644
--- a/Common/src/com/googlecode/android_scripting/facade/MediaSessionFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/MediaSessionFacade.java
@@ -78,10 +78,10 @@
public Object call() throws Exception {
Log.d("Adding callback.");
mMedia.addCallback(mCallback);
- PlaybackState state = new PlaybackState();
- state.setActions(PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PAUSE | PlaybackState.ACTION_STOP);
- state.setState(PlaybackState.STATE_PLAYING, 0, 1);
- mMedia.setPlaybackState(state);
+ PlaybackState.Builder bob = new PlaybackState.Builder();
+ bob.setActions(PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PAUSE | PlaybackState.ACTION_STOP);
+ bob.setState(PlaybackState.STATE_PLAYING, 0, 1);
+ mMedia.setPlaybackState(bob.build());
return null;
}
});