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

Commit 4b74f4de authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix IME adjustment for voice interaction windows

Bug: 28344950
Change-Id: I42fa7abe28a693bc22c878c75839af4ef03e5e8a
parent 363ab98f
Loading
Loading
Loading
Loading
+19 −5
Original line number Diff line number Diff line
@@ -4317,11 +4317,25 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            pf.top = df.top = of.top = mUnrestrictedScreenTop;
            pf.right = df.right = of.right = mUnrestrictedScreenLeft + mUnrestrictedScreenWidth;
            pf.bottom = df.bottom = of.bottom = mUnrestrictedScreenTop + mUnrestrictedScreenHeight;
            cf.bottom = vf.bottom = mStableBottom;
            // Note: In Phone landscape mode, the button bar should also be excluded.
            cf.right = vf.right = mStableRight;
            cf.left = vf.left = mStableLeft;
            cf.top = vf.top = mStableTop;
            if (adjust != SOFT_INPUT_ADJUST_RESIZE) {
                cf.left = mDockLeft;
                cf.top = mDockTop;
                cf.right = mDockRight;
                cf.bottom = mDockBottom;
            } else {
                cf.left = mContentLeft;
                cf.top = mContentTop;
                cf.right = mContentRight;
                cf.bottom = mContentBottom;
            }
            if (adjust != SOFT_INPUT_ADJUST_NOTHING) {
                vf.left = mCurLeft;
                vf.top = mCurTop;
                vf.right = mCurRight;
                vf.bottom = mCurBottom;
            } else {
                vf.set(cf);
            }
        } else if (win == mStatusBar) {
            pf.left = df.left = of.left = mUnrestrictedScreenLeft;
            pf.top = df.top = of.top = mUnrestrictedScreenTop;