am 1b4ea7ef: Sanity check while updating volume in MediaRouteChooserDialog
* commit '1b4ea7eff50545f4673ca01b664e5edccc784688': Sanity check while updating volume in MediaRouteChooserDialog
This commit is contained in:
@@ -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 ?
|
||||
|
||||
Reference in New Issue
Block a user