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

Commit f2c51579 authored by Amith Yamasani's avatar Amith Yamasani Committed by android-build-merger
Browse files

Merge "onAccountsUpdated shouldn\'t be called back after listener unregistered"

am: b9667384

* commit 'b9667384':
  onAccountsUpdated shouldn't be called back after listener unregistered
parents 344fc999 b9667384
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -1916,14 +1916,18 @@ public class AccountManager {
        handler.post(new Runnable() {
            @Override
            public void run() {
                synchronized (mAccountsUpdatedListeners) {
                    try {
                        if (mAccountsUpdatedListeners.containsKey(listener)) {
                            listener.onAccountsUpdated(accountsCopy);
                        }
                    } catch (SQLException e) {
                        // Better luck next time.  If the problem was disk-full,
                        // the STORAGE_OK intent will re-trigger the update.
                        Log.e(TAG, "Can't update accounts", e);
                    }
                }
            }
        });
    }