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

Commit c63ff2d5 authored by Tarandeep Singh's avatar Tarandeep Singh Committed by Android (Google) Code Review
Browse files

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

parents d0f57d36 7928f7cd
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);