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

Commit 341ebdd8 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Automerger Merge Worker
Browse files

Simplify RemoteInputConnectionImpl#finishComposingText*() am: a9156d61

parents efedb4a8 a9156d61
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -830,11 +830,7 @@ final class RemoteInputConnectionImpl extends IRemoteInputConnection.Stub {
                return;  // cancelled
            }
            InputConnection ic = getInputConnection();
            // Note we do NOT check isActive() here, because this is safe
            // for an IME to call at any time, and we need to allow it
            // through to clean up our state after the IME has switched to
            // another client.
            if (ic == null) {
            if (ic == null || !isActive()) {
                Log.w(TAG, "finishComposingTextFromImm on inactive InputConnection");
                return;
            }
@@ -858,11 +854,7 @@ final class RemoteInputConnectionImpl extends IRemoteInputConnection.Stub {
                return;  // cancelled
            }
            InputConnection ic = getInputConnection();
            // Note we do NOT check isActive() here, because this is safe
            // for an IME to call at any time, and we need to allow it
            // through to clean up our state after the IME has switched to
            // another client.
            if (ic == null) {
            if (ic == null && !isActive()) {
                Log.w(TAG, "finishComposingText on inactive InputConnection");
                return;
            }