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

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

Merge "Set the IME control's initiallyVisible to false" into 24D1-dev

parents 45fbe780 f312425a
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -518,8 +518,17 @@ class InsetsSourceProvider {
        final SurfaceControl leash = mAdapter.mCapturedLeash;
        final SurfaceControl leash = mAdapter.mCapturedLeash;
        mControlTarget = target;
        mControlTarget = target;
        updateVisibility();
        updateVisibility();
        boolean initiallyVisible = mClientVisible;
        if (mSource.getType() == WindowInsets.Type.ime()) {
            // The IME cannot be initially visible, see ControlAdapter#startAnimation below.
            // Also, the ImeInsetsSourceConsumer clears the client visibility upon losing control,
            // but this won't have reached here yet by the time the new control is created.
            // Note: The DisplayImeController needs the correct previous client's visibility, so we
            // only override the initiallyVisible here.
            initiallyVisible = false;
        }
        mControl = new InsetsSourceControl(mSource.getId(), mSource.getType(), leash,
        mControl = new InsetsSourceControl(mSource.getId(), mSource.getType(), leash,
                mClientVisible, surfacePosition, getInsetsHint());
                initiallyVisible, surfacePosition, getInsetsHint());


        ProtoLog.d(WM_DEBUG_WINDOW_INSETS,
        ProtoLog.d(WM_DEBUG_WINDOW_INSETS,
                "InsetsSource Control %s for target %s", mControl, mControlTarget);
                "InsetsSource Control %s for target %s", mControl, mControlTarget);