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

Commit 6a90d3f9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cleanup: Start ImeTracker requests in IMMS where untracked" into main

parents 57c32980 1018f30b
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -4996,10 +4996,10 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
                    final int userId = resolveImeUserIdFromDisplayIdLocked(originatingDisplayId);
                    final var userData = getUserData(userId);
                    if (Flags.refactorInsetsController()) {
                        setImeVisibilityOnFocusedWindowClient(false, userData,
                                null /* TODO(b/353463205) check statsToken */);
                        final var statsToken = createStatsTokenForFocusedClient(false /* show */,
                                reason, userId);
                        setImeVisibilityOnFocusedWindowClient(false, userData, statsToken);
                    } else {

                        hideCurrentInputLocked(userData.mImeBindingState.mFocusedWindow,
                                0 /* flags */, reason, userId);
                    }
@@ -6695,8 +6695,9 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
                    final InputMethodSettings settings = InputMethodSettingsRepository.get(userId);
                    final var userData = getUserData(userId);
                    if (Flags.refactorInsetsController()) {
                        setImeVisibilityOnFocusedWindowClient(false, userData,
                                null /* TODO(b329229469) initialize statsToken here? */);
                        final var statsToken = createStatsTokenForFocusedClient(false /* show */,
                                SoftInputShowHideReason.HIDE_RESET_SHELL_COMMAND, userId);
                        setImeVisibilityOnFocusedWindowClient(false, userData, statsToken);
                    } else {
                        hideCurrentInputLocked(userData.mImeBindingState.mFocusedWindow,
                                0 /* flags */,