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

Commit 98054aa2 authored by Evan Chen's avatar Evan Chen Committed by Android (Google) Code Review
Browse files

Merge "No need to show user consent for SingleDevice && isSkipPrompt" into tm-dev

parents 13809feb afae0bfe
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -484,6 +484,14 @@ public class CompanionDeviceActivity extends FragmentActivity implements
        if (deviceFilterPairs.isEmpty()) return;

        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 Spanned title = getHtmlFromResources(