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

Commit af308b92 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by Android (Google) Code Review
Browse files

Merge "Handle onNullBinding in AccountManagerService" into main

parents 253d3033 e42c1ce7
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -5266,6 +5266,22 @@ public class AccountManagerService
            }
        }

        @Override
        public void onNullBinding(ComponentName name) {
            IAccountManagerResponse response = getResponseAndClose();
            if (response != null) {
                try {
                    response.onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION,
                            "disconnected");
                } catch (RemoteException e) {
                    if (Log.isLoggable(TAG, Log.VERBOSE)) {
                        Log.v(TAG, "Session.onNullBinding: "
                                + "caught RemoteException while responding", e);
                    }
                }
            }
        }

        public abstract void run() throws RemoteException;

        public void onTimedOut() {