Updates for compatLib changes to MedaiRouter support lib

The ControllerDialog in MediaRouter now gets the session token from
the MediaRouter instead of needing it to be set. Removed the calls to
set it directly on the dialog.

bug:18186638
Change-Id: If7499108c226d3405ea70e2f332694a92a921e50
This commit is contained in:
RoboErik
2014-12-04 13:51:26 -08:00
parent 154cfd7a55
commit 4424852bbb

View File

@@ -753,9 +753,6 @@ public class SampleMediaRouterActivity extends ActionBarActivity {
Context context, Bundle savedInstanceState) {
mControllerDialog = super.onCreateControllerDialog(context,
savedInstanceState);
if (mPlayer != null) {
mControllerDialog.setMediaSession(mPlayer.getMediaSession().getSessionToken());
}
mControllerDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
@@ -767,9 +764,6 @@ public class SampleMediaRouterActivity extends ActionBarActivity {
public void setPlayer(Player player) {
mPlayer = player;
if (mControllerDialog != null) {
mControllerDialog.setMediaSession(mPlayer.getMediaSession().getSessionToken());
}
}
}
}