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

Commit f739e47c authored by Taran Singh's avatar Taran Singh
Browse files

Add null check in IMS hideWindow

Input view can be null. Add a null check.

Fix: 152060038
Test: Manually using steps in bug
Change-Id: I1ed899ef83b75003b0862f97de733247fe840ae4
parent bc78be75
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2284,7 +2284,9 @@ public class InputMethodService extends AbstractInputMethodService {
            // When insets API is enabled, it is responsible for client and server side
            // visibility of IME window.
            if (isVisibilityAppliedUsingInsetsConsumer()) {
                if (mInputView != null) {
                    mInputView.dispatchWindowVisibilityChanged(View.GONE);
                }
            } else {
                mWindow.hide();
            }