Merge "No need to show user consent for SingleDevice && isSkipPrompt" into tm-dev
This commit is contained in:
@@ -484,6 +484,14 @@ public class CompanionDeviceActivity extends FragmentActivity implements
|
|||||||
if (deviceFilterPairs.isEmpty()) return;
|
if (deviceFilterPairs.isEmpty()) return;
|
||||||
|
|
||||||
mSelectedDevice = requireNonNull(deviceFilterPairs.get(0));
|
mSelectedDevice = requireNonNull(deviceFilterPairs.get(0));
|
||||||
|
// No need to show user consent dialog if it is a singleDevice
|
||||||
|
// and isSkipPrompt(true) AssociationRequest.
|
||||||
|
// See AssociationRequestsProcessor#mayAssociateWithoutPrompt.
|
||||||
|
if (mRequest.isSkipPrompt()) {
|
||||||
|
mSingleDeviceSpinner.setVisibility(View.GONE);
|
||||||
|
onUserSelectedDevice(mSelectedDevice);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final String deviceName = mSelectedDevice.getDisplayName();
|
final String deviceName = mSelectedDevice.getDisplayName();
|
||||||
final Spanned title = getHtmlFromResources(
|
final Spanned title = getHtmlFromResources(
|
||||||
|
|||||||
Reference in New Issue
Block a user