Loading services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +4 −11 Original line number Diff line number Diff line Loading @@ -3424,19 +3424,12 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub public void reportPerceptibleAsync(IBinder windowToken, boolean perceptible) { Objects.requireNonNull(windowToken, "windowToken must not be null"); synchronized (ImfLock.class) { if (!calledFromValidUserLocked()) { if (mCurFocusedWindow != windowToken || mCurPerceptible == perceptible) { return; } final long ident = Binder.clearCallingIdentity(); try { if (mCurFocusedWindow == windowToken && mCurPerceptible != perceptible) { mCurPerceptible = perceptible; updateSystemUiLocked(mImeWindowVis, mBackDisposition); } } finally { Binder.restoreCallingIdentity(ident); } Binder.withCleanCallingIdentity(() -> updateSystemUiLocked(mImeWindowVis, mBackDisposition)); } } Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +4 −11 Original line number Diff line number Diff line Loading @@ -3424,19 +3424,12 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub public void reportPerceptibleAsync(IBinder windowToken, boolean perceptible) { Objects.requireNonNull(windowToken, "windowToken must not be null"); synchronized (ImfLock.class) { if (!calledFromValidUserLocked()) { if (mCurFocusedWindow != windowToken || mCurPerceptible == perceptible) { return; } final long ident = Binder.clearCallingIdentity(); try { if (mCurFocusedWindow == windowToken && mCurPerceptible != perceptible) { mCurPerceptible = perceptible; updateSystemUiLocked(mImeWindowVis, mBackDisposition); } } finally { Binder.restoreCallingIdentity(ident); } Binder.withCleanCallingIdentity(() -> updateSystemUiLocked(mImeWindowVis, mBackDisposition)); } } Loading