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

Commit e42c1ce7 authored by Dmitry Dementyev's avatar Dmitry Dementyev
Browse files

Handle onNullBinding in AccountManagerService

Bug: 370474434
Test: manual
Flag: EXEMPT bugfix
Change-Id: I276564f1443a4d7fa6bb998cf7072fcd5c7ff1fc
parent d114955e
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -5253,6 +5253,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() {