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

Commit e128f7da authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Partly inline on{Pre,Post}WindowFocus()

This is mechanical refactoring.  There must be no behavior change.

Bug: 234882948
Test: presubmit
Change-Id: I8cd9dfe858c3ae4e860742a3b771888aa5d8921d
parent c723b12c
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);
        }
    }