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

Commit ecc782c3 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

am: 036acae8

Change-Id: Ic908454f8a35b2aa37e4af81d043638faa19effb
parents 428d3ca7 036acae8
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2884,11 +2884,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);