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

Commit a4ff98b3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid harmless NPE in sendResultReceiverFailureLocked()" into main

parents 4a4d7b84 5cf0be2d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3045,6 +3045,9 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.

    @GuardedBy("ImfLock.class")
    private void sendResultReceiverFailureLocked(@Nullable ResultReceiver resultReceiver) {
        if (resultReceiver == null) {
            return;
        }
        final boolean isInputShown = mVisibilityStateComputer.isInputShown();
        resultReceiver.send(isInputShown
                ? InputMethodManager.RESULT_UNCHANGED_SHOWN