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

Commit 036acae8 authored by Tarandeep Singh's avatar Tarandeep Singh Committed by android-build-merger
Browse files

Merge "Register Ime consumer only when insets are enabled." into qt-dev

am: c63ff2d5

Change-Id: Iaddd14dd421d31668a9808cd4090b46266cf33ca
parents 24549995 c63ff2d5
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2814,11 +2814,15 @@ public final class ViewRootImpl implements ViewParent,
            hasWindowFocus = mUpcomingWindowFocus;
            inTouchMode = mUpcomingInTouchMode;
        }
        if (sNewInsetsMode != NEW_INSETS_MODE_NONE) {
            // TODO (b/131181940): Make sure this doesn't leak Activity with mActivityConfigCallback
            // config changes.
            if (hasWindowFocus) {
                mInsetsController.onWindowFocusGained();
            } else {
                mInsetsController.onWindowFocusLost();
            }
        }

        if (mAdded) {
            profileRendering(hasWindowFocus);