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

Commit 04850413 authored by Taran Singh's avatar Taran Singh
Browse files

Fix floating IME visibility

Floating IME now applies final visibility

Test: Manually using steps in bug
Fix: 151953095
Change-Id: Id611e4bac22e9663d04e260794ea0f621d7b7e29
parent 174fd34c
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -196,11 +196,10 @@ public class InsetsAnimationControlImpl implements WindowInsetsAnimationControll
        if (mCancelled || mFinished) {
        if (mCancelled || mFinished) {
            return;
            return;
        }
        }
        mShownOnFinish = shown;
        setInsetsAndAlpha(shown ? mShownInsets : mHiddenInsets, 1f /* alpha */, 1f /* fraction */);
        setInsetsAndAlpha(shown ? mShownInsets : mHiddenInsets, 1f /* alpha */, 1f /* fraction */);
        mFinished = true;
        mFinished = true;
        mListener.onFinished(this);
        mListener.onFinished(this);

        mShownOnFinish = shown;
    }
    }


    @Override
    @Override
@@ -301,7 +300,7 @@ public class InsetsAnimationControlImpl implements WindowInsetsAnimationControll
                        .withAlpha(side == ISIDE_FLOATING ? 1 : alpha)
                        .withAlpha(side == ISIDE_FLOATING ? 1 : alpha)
                        .withMatrix(mTmpMatrix)
                        .withMatrix(mTmpMatrix)
                        .withVisibility(side == ISIDE_FLOATING
                        .withVisibility(side == ISIDE_FLOATING
                                ? state.getSource(source.getType()).isVisible()
                                ? mShownOnFinish
                                : inset != 0 /* visible */)
                                : inset != 0 /* visible */)
                        .build();
                        .build();
                surfaceParams.add(params);
                surfaceParams.add(params);