Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f681e740 authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am 56fbd14f: am 1b4ea7ef: Sanity check while updating volume in MediaRouteChooserDialog

* commit '56fbd14f':
  Sanity check while updating volume in MediaRouteChooserDialog
parents 0c26f976 56fbd14f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -122,6 +122,8 @@ public class MediaRouteChooserDialogFragment extends DialogFragment {
    }
    }


    void updateVolume() {
    void updateVolume() {
        if (mRouter == null) return;

        final RouteInfo selectedRoute = mRouter.getSelectedRoute(mRouteTypes);
        final RouteInfo selectedRoute = mRouter.getSelectedRoute(mRouteTypes);
        mVolumeIcon.setImageResource(
        mVolumeIcon.setImageResource(
                selectedRoute.getPlaybackType() == RouteInfo.PLAYBACK_TYPE_LOCAL ?
                selectedRoute.getPlaybackType() == RouteInfo.PLAYBACK_TYPE_LOCAL ?