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

Commit 1882a8c8 authored by Tiger Huang's avatar Tiger Huang Committed by Automerger Merge Worker
Browse files

Merge "Don't provide IME insets to the PIP window" into sc-dev am: 1028329a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13468212

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If25fbb903078b656adfd146df93424fce3a5c348
parents 33a5e30b 1028329a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.server.wm;

import static android.app.WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW;
import static android.app.WindowConfiguration.WINDOWING_MODE_PINNED;
import static android.app.WindowConfiguration.WINDOWING_MODE_UNDEFINED;
import static android.os.Trace.TRACE_TAG_WINDOW_MANAGER;
import static android.view.InsetsState.ITYPE_CAPTION_BAR;
@@ -218,6 +219,9 @@ class InsetsStateController {
            state.removeSource(ITYPE_STATUS_BAR);
            state.removeSource(ITYPE_NAVIGATION_BAR);
            state.removeSource(ITYPE_EXTRA_NAVIGATION_BAR);
            if (windowingMode == WINDOWING_MODE_PINNED) {
                state.removeSource(ITYPE_IME);
            }
        }

        return state;
+1 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ public class InsetsStateControllerTest extends WindowTestsBase {

        assertNull(getController().getInsetsForWindow(app).peekSource(ITYPE_STATUS_BAR));
        assertNull(getController().getInsetsForWindow(app).peekSource(ITYPE_NAVIGATION_BAR));
        assertNull(getController().getInsetsForWindow(app).peekSource(ITYPE_IME));
    }

    @Test