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

Commit de44fa1f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "removeAll unregisters callbacks in the wrong order, causing exception"

parents 7c156c3a 1a6f4c79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -857,7 +857,7 @@ public class TextServicesManagerService extends ITextServicesManager.Stub {
            Slog.e(TAG, "Remove the spell checker bind unexpectedly.");
            synchronized (mLock) {
                final int size = mListeners.getRegisteredCallbackCount();
                for (int i = 0; i < size; ++i) {
                for (int i = size - 1; i >= 0; --i) {
                    mListeners.unregister(mListeners.getRegisteredCallbackItem(i));
                }
                mPendingSessionRequests.clear();