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

Commit a0b50870 authored by Evan Chen's avatar Evan Chen Committed by Automerger Merge Worker
Browse files

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

parents 0c1d2d8f 98054aa2
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(