Merge "[Output switcher] Check current device" into tm-dev am: 49ab839806
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17608150 Change-Id: I91b75694e9a8d4cde702bc0ebcd2ea62c451c6ef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -88,8 +88,11 @@ public class MediaOutputDialog extends MediaOutputBaseDialog {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
int getStopButtonVisibility() {
|
int getStopButtonVisibility() {
|
||||||
boolean isActiveRemoteDevice = mMediaOutputController.isActiveRemoteDevice(
|
boolean isActiveRemoteDevice = false;
|
||||||
mMediaOutputController.getCurrentConnectedMediaDevice());
|
if (mMediaOutputController.getCurrentConnectedMediaDevice() != null) {
|
||||||
|
isActiveRemoteDevice = mMediaOutputController.isActiveRemoteDevice(
|
||||||
|
mMediaOutputController.getCurrentConnectedMediaDevice());
|
||||||
|
}
|
||||||
boolean isBroadCastSupported = isBroadcastSupported();
|
boolean isBroadCastSupported = isBroadcastSupported();
|
||||||
|
|
||||||
return (isActiveRemoteDevice || isBroadCastSupported) ? View.VISIBLE : View.GONE;
|
return (isActiveRemoteDevice || isBroadCastSupported) ? View.VISIBLE : View.GONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user