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

Commit 4d7e8238 authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Make DisplayContent multi-display and multi-user aware for IME

This changelist updates the DisplayContent IME related methods
(getImeHostOrFallback and computeImeControlTarget) to correctly
determine the user's main display for visible background users.

The main display for a visible background user might not be DEFAULT_DISPLAY,
therefore the IME fallback display has to be user's main display instead (which
will be other than DEFAULT_DISPLAY).

This modification is a necessary prerequisite to fix the IME logic for
identifying the appropriate fallback display for IME visualization.

Flag: android.view.inputmethod.fallback_display_for_secondary_user_on_secondary_display
Test: atest CtsWindowManagerDeviceIme CtsInputMethodTestCases
Test: presubmit
Bug: 383228193
Change-Id: I5f85149684b9b1c6db13bed8b6138d67b4eb2ae1
parent 785e5042
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment