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

Commit fb4bcf40 authored by Ebru Kurnaz's avatar Ebru Kurnaz Committed by Android (Google) Code Review
Browse files

Merge "Fix Gboard keyboard pill appear on wrong screen." into main

parents cd073622 ba9c51a7
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -4328,8 +4328,11 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
            return DISPLAY_IME_POLICY_FALLBACK_DISPLAY;
            return DISPLAY_IME_POLICY_FALLBACK_DISPLAY;
        }
        }
        final int imePolicy = mWmService.mDisplayWindowSettings.getImePolicyLocked(this);
        final int imePolicy = mWmService.mDisplayWindowSettings.getImePolicyLocked(this);
        // Show IME locally if display is eligible for desktop mode and the flag is enabled.
        if (imePolicy == DISPLAY_IME_POLICY_FALLBACK_DISPLAY
        if (imePolicy == DISPLAY_IME_POLICY_FALLBACK_DISPLAY
                && isPublicSecondaryDisplayWithDesktopModeForceEnabled()) {
                && (isPublicSecondaryDisplayWithDesktopModeForceEnabled()
                    || (DesktopExperienceFlags.ENABLE_DISPLAY_CONTENT_MODE_MANAGEMENT.isTrue()
                    && (isSystemDecorationsSupported() && allowContentModeSwitch())))) {
            // If the display has not explicitly requested for the IME to be hidden then it shall
            // If the display has not explicitly requested for the IME to be hidden then it shall
            // show the IME locally.
            // show the IME locally.
            return DISPLAY_IME_POLICY_LOCAL;
            return DISPLAY_IME_POLICY_LOCAL;