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

Commit b7e4b7c2 authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Add debug log for showSoftInput

As CL[1] added the reason field in showSoftInput to expose where the
show request comes from.

Refine the original showSoftInput debug log from CL[2] to add the
reason for helping the issue clarification.

[1]: I390dc029e7bcc30c200926a9bfbbbd0268a1f714
[2]: I67a790f9d98d6131aaf04e4bb98d2a28873d3424

Bug: 182071625
Bug: 171827834
Test: adb logcat -s InputMethodManager:D
Change-Id: I73ab4e2b856669b6b6922ee451da1819e5ca18f4
parent 2c8068c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1696,7 +1696,8 @@ public final class InputMethodManager {
            }

            try {
                Log.d(TAG, "showSoftInput() view=" + view + " flags=" + flags);
                Log.d(TAG, "showSoftInput() view=" + view + " flags=" + flags + " reason="
                        + InputMethodDebug.softInputDisplayReasonToString(reason));
                final Completable.Boolean value = Completable.createBoolean();
                mService.showSoftInput(
                        mClient,