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

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

Merge "Fix mCachedAssociations for multiple users" into sc-dev

parents 87dc2763 d20c7c08
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -454,9 +454,6 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
                }).cancelTimeout();

            }, FgThread.getExecutor()).whenComplete(uncheckExceptions((association, err) -> {

                final long callingIdentity = Binder.clearCallingIdentity();
                try {
                if (err == null) {
                    addAssociation(association);
                } else {
@@ -464,9 +461,6 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
                    callback.onFailure("No devices found: " + err.getMessage());
                }
                cleanup();
                } finally {
                    Binder.restoreCallingIdentity(callingIdentity);
                }
            }));
        }