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

Commit 85422705 authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Catch IllegalArgumentException when association is not found" into main

parents 3e46f1f1 dc2e0e22
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -124,8 +124,12 @@ public class BluetoothDetailsDataSyncController extends BluetoothDetailsControll

        boolean visible = false;
        boolean checked = false;
        PermissionSyncRequest request = mCompanionDeviceManager.getPermissionSyncRequest(
                mAssociationId);
        PermissionSyncRequest request = null;
        try {
            request = mCompanionDeviceManager.getPermissionSyncRequest(mAssociationId);
        } catch (IllegalArgumentException e) {
            // no-op, keep request null.
        }
        if (request != null) {
            visible = true;
            if (request.isUserConsented()) {