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

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

Dump IMMS#mCurrentUserId instead of IMMS#mSettings

This is a follow up to my previous commit [1], which replaced

  InputMethodManagerService#mSettings

with

  InputMethodManagerService#mCurrentUserId

for better separation of concern.

What I overlooked was that

  InputMethodManagerService#dumpAsStringNoCheck

remained to dump the current user ID as IMMS#mSettings.

With this commit it is logged as a dump of mCurrentUserId.

 [1]: Idae0fb6d1a9182efe917f81a1d881d488a1b57e5
      745f9e77

Bug: 305849394
Bug: 329163064
Test: adb shell dumpsys input_method | grep mCurrentUserId
Change-Id: I4b7dc1b0e52e9bf25095eb2e3cc520d46b3869e5
parent ad96cfa8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5859,6 +5859,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
                p.println("    curSession=" + c.mCurSession);
            };
            mClientController.forAllClients(clientControllerDump);
            p.println("  mCurrentUserId=" + mCurrentUserId);
            p.println("  mCurMethodId=" + getSelectedMethodIdLocked());
            client = mCurClient;
            p.println("  mCurClient=" + client + " mCurSeq=" + getSequenceNumberLocked());
@@ -5884,8 +5885,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
                    ? Arrays.toString(mStylusIds.toArray()) : ""));
            p.println("  mSwitchingController:");
            mSwitchingController.dump(p);
            p.println("  mSettings:");
            settings.dump(p, "    ");

            p.println("  mStartInputHistory:");
            mStartInputHistory.dump(pw, "    ");