diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index 32f4272ec9978..91f91f86d2752 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -3325,6 +3325,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub if (!canInteractWithImeLocked(uid, client, "showSoftInput", statsToken)) { ImeTracker.forLogging().onFailed( statsToken, ImeTracker.PHASE_SERVER_CLIENT_FOCUSED); + Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER); return false; } final long ident = Binder.clearCallingIdentity();