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

Commit 4b1cbf38 authored by Tiger Huang's avatar Tiger Huang Committed by Automerger Merge Worker
Browse files

Merge "Do let IME fit invisible insets" into rvc-qpr-dev am: edf20366

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

Change-Id: I9d087f60cd3244b763812895e33d110db8e559fc
parents 149c95c7 edf20366
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1215,7 +1215,6 @@ public class InputMethodService extends AbstractInputMethodService {
                WindowManager.LayoutParams.TYPE_INPUT_METHOD, Gravity.BOTTOM, false);
                WindowManager.LayoutParams.TYPE_INPUT_METHOD, Gravity.BOTTOM, false);
        mWindow.getWindow().getAttributes().setFitInsetsTypes(statusBars() | navigationBars());
        mWindow.getWindow().getAttributes().setFitInsetsTypes(statusBars() | navigationBars());
        mWindow.getWindow().getAttributes().setFitInsetsSides(Side.all() & ~Side.BOTTOM);
        mWindow.getWindow().getAttributes().setFitInsetsSides(Side.all() & ~Side.BOTTOM);
        mWindow.getWindow().getAttributes().setFitInsetsIgnoringVisibility(true);


        // IME layout should always be inset by navigation bar, no matter its current visibility,
        // IME layout should always be inset by navigation bar, no matter its current visibility,
        // unless automotive requests it. Automotive devices may request the navigation bar to be
        // unless automotive requests it. Automotive devices may request the navigation bar to be
+8 −10
Original line number Original line Diff line number Diff line
@@ -549,11 +549,10 @@ public class DisplayPolicy {
                        synchronized (mLock) {
                        synchronized (mLock) {
                            mDisplayContent.calculateSystemGestureExclusion(
                            mDisplayContent.calculateSystemGestureExclusion(
                                    excludedRegion, null /* outUnrestricted */);
                                    excludedRegion, null /* outUnrestricted */);
                            final boolean sideAllowed = mNavigationBarAlwaysShowOnSideGesture
                            final boolean excluded =
                                    || mNavigationBarPosition == NAV_BAR_RIGHT;
                                    mSystemGestures.currentGestureStartedInRegion(excludedRegion);
                            if (mNavigationBar != null && sideAllowed
                            if (mNavigationBar != null && (mNavigationBarPosition == NAV_BAR_RIGHT
                                    && !mSystemGestures.currentGestureStartedInRegion(
                                    || !excluded && mNavigationBarAlwaysShowOnSideGesture)) {
                                            excludedRegion)) {
                                requestTransientBars(mNavigationBar);
                                requestTransientBars(mNavigationBar);
                            }
                            }
                            checkAltBarSwipeForTransientBars(ALT_BAR_RIGHT);
                            checkAltBarSwipeForTransientBars(ALT_BAR_RIGHT);
@@ -567,11 +566,10 @@ public class DisplayPolicy {
                        synchronized (mLock) {
                        synchronized (mLock) {
                            mDisplayContent.calculateSystemGestureExclusion(
                            mDisplayContent.calculateSystemGestureExclusion(
                                    excludedRegion, null /* outUnrestricted */);
                                    excludedRegion, null /* outUnrestricted */);
                            final boolean sideAllowed = mNavigationBarAlwaysShowOnSideGesture
                            final boolean excluded =
                                    || mNavigationBarPosition == NAV_BAR_LEFT;
                                    mSystemGestures.currentGestureStartedInRegion(excludedRegion);
                            if (mNavigationBar != null && sideAllowed
                            if (mNavigationBar != null && (mNavigationBarPosition == NAV_BAR_LEFT
                                    && !mSystemGestures.currentGestureStartedInRegion(
                                    || !excluded && mNavigationBarAlwaysShowOnSideGesture)) {
                                            excludedRegion)) {
                                requestTransientBars(mNavigationBar);
                                requestTransientBars(mNavigationBar);
                            }
                            }
                            checkAltBarSwipeForTransientBars(ALT_BAR_LEFT);
                            checkAltBarSwipeForTransientBars(ALT_BAR_LEFT);