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

Commit 55353cfb authored by Stefan Kuhne's avatar Stefan Kuhne Committed by Android Git Automerger
Browse files

am 0925136b: Merge "Fixing voice panel centering issues in landscape on phone" into mnc-dev

* commit '0925136b':
  Fixing voice panel centering issues in landscape on phone
parents 6d1aa6d5 0925136b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1097,7 +1097,8 @@ public class VoiceInteractionSession implements KeyEvent.Callback, ComponentCall
                WindowManager.LayoutParams.TYPE_VOICE_INTERACTION, Gravity.BOTTOM, true);
        mWindow.getWindow().addFlags(
                WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED |
                WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
                WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |
                WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR);
        initViews();
        mWindow.getWindow().setLayout(MATCH_PARENT, MATCH_PARENT);
        mWindow.setToken(mToken);
+6 −5
Original line number Diff line number Diff line
@@ -3739,13 +3739,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            attrs.gravity = Gravity.BOTTOM;
            mDockLayer = win.getSurfaceLayer();
        } else if (attrs.type == TYPE_VOICE_INTERACTION) {
            pf.left = df.left = of.left = cf.left = vf.left = mUnrestrictedScreenLeft;
            pf.left = df.left = of.left = mUnrestrictedScreenLeft;
            pf.top = df.top = of.top = mUnrestrictedScreenTop;
            pf.right = df.right = of.right = cf.right = vf.right = mUnrestrictedScreenLeft
                    + mUnrestrictedScreenWidth;
            pf.bottom = df.bottom = of.bottom = cf.bottom = mUnrestrictedScreenTop
                    + mUnrestrictedScreenHeight;
            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;
        } else if (win == mStatusBar) {
            pf.left = df.left = of.left = mUnrestrictedScreenLeft;