Merge "[Output Swithcer] Fix deeplink and disable single device layout" into udc-dev am: 7a64585e90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21988050 Change-Id: Ieaeb5776d992484dc3492f86e791ff2930c61154 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -340,7 +340,7 @@ public class MediaOutputAdapter extends MediaOutputBaseAdapter {
|
||||
updateDeviceStatusIcon(deviceStatusIcon);
|
||||
mStatusIcon.setVisibility(View.VISIBLE);
|
||||
}
|
||||
updateTwoLineLayoutContentAlpha(
|
||||
updateSingleLineLayoutContentAlpha(
|
||||
updateClickActionBasedOnSelectionBehavior(device)
|
||||
? DEVICE_CONNECTED_ALPHA : DEVICE_DISCONNECTED_ALPHA);
|
||||
} else {
|
||||
@@ -364,6 +364,12 @@ public class MediaOutputAdapter extends MediaOutputBaseAdapter {
|
||||
mStatusIcon.setAlpha(alphaValue);
|
||||
}
|
||||
|
||||
private void updateSingleLineLayoutContentAlpha(float alphaValue) {
|
||||
mTitleIcon.setAlpha(alphaValue);
|
||||
mTitleText.setAlpha(alphaValue);
|
||||
mStatusIcon.setAlpha(alphaValue);
|
||||
}
|
||||
|
||||
private void updateEndClickAreaAsSessionEditing(MediaDevice device) {
|
||||
mEndClickIcon.setOnClickListener(null);
|
||||
mEndTouchArea.setOnClickListener(null);
|
||||
|
||||
@@ -395,7 +395,6 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
|
||||
launchIntent.putExtra(EXTRA_ROUTE_ID, routeId);
|
||||
launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
mCallback.dismissDialog();
|
||||
mContext.startActivity(launchIntent);
|
||||
mActivityStarter.startActivity(launchIntent, true, controller);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user