am 1b4ea7ef: Sanity check while updating volume in MediaRouteChooserDialog

* commit '1b4ea7eff50545f4673ca01b664e5edccc784688':
  Sanity check while updating volume in MediaRouteChooserDialog
This commit is contained in:
Adam Powell
2012-06-23 05:36:58 -07:00
committed by Android Git Automerger

View File

@@ -122,6 +122,8 @@ public class MediaRouteChooserDialogFragment extends DialogFragment {
}
void updateVolume() {
if (mRouter == null) return;
final RouteInfo selectedRoute = mRouter.getSelectedRoute(mRouteTypes);
mVolumeIcon.setImageResource(
selectedRoute.getPlaybackType() == RouteInfo.PLAYBACK_TYPE_LOCAL ?