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

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

Merge "Fix an errorprone for GuardedBy warning"

parents 37ea02ca a0dde9c9
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -3350,15 +3350,16 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
    @BinderThread
    @Override
    public void reportPerceptibleAsync(IBinder windowToken, boolean perceptible) {
        Binder.withCleanCallingIdentity(() -> {
            Objects.requireNonNull(windowToken, "windowToken must not be null");
            synchronized (ImfLock.class) {
                if (mCurFocusedWindow != windowToken || mCurPerceptible == perceptible) {
                    return;
                }
                mCurPerceptible = perceptible;
            Binder.withCleanCallingIdentity(() ->
                    updateSystemUiLocked(mImeWindowVis, mBackDisposition));
                updateSystemUiLocked();
            }
        });
    }

    @GuardedBy("ImfLock.class")