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

Commit 1179a454 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Partly inline on{Pre,Post}WindowFocus()"

parents 5fb1de9d e128f7da
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -74,9 +74,10 @@ public final class ImeFocusController {
        }
        mHasImeFocus = hasImeFocus;
        if (mHasImeFocus) {
            onPreWindowFocus(true /* hasWindowFocus */, windowAttribute);
            onPostWindowFocus(mViewRootImpl.mView.findFocus(), true /* hasWindowFocus */,
                    windowAttribute);
            getImmDelegate().onPreWindowGainedFocus(mViewRootImpl);
            final View focusedView = mViewRootImpl.mView.findFocus();
            View viewForWindowFocus = focusedView != null ? focusedView : mViewRootImpl.mView;
            getImmDelegate().onPostWindowGainedFocus(viewForWindowFocus, windowAttribute);
        }
    }