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

Commit 8c172771 authored by Felix Stern's avatar Felix Stern
Browse files

Log controlTarget in ImeISP#onPostLayout

Change-Id: I2a5e951a851aaa5f8f4f4a971f1c9e4dc521b06a
Test: None, logs only
Flag: android.view.inputmethod.refactor_insets_controller
Bug: 298172246
parent b4a1b07e
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -104,7 +104,8 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
            if (!mGivenInsetsReady && isServerVisible() && !givenInsetsPending
                    && mControlTarget != null) {
                ProtoLog.d(WM_DEBUG_IME,
                        "onPostLayout: IME control ready to be dispatched, ws=%s", ws);
                        "onPostLayout: IME control ready to be dispatched, controlTarget=%s",
                        mControlTarget);
                mGivenInsetsReady = true;
                ImeTracker.forLogging().onProgress(mStatsToken,
                        ImeTracker.PHASE_WM_POST_LAYOUT_NOTIFY_CONTROLS_CHANGED);
@@ -115,13 +116,15 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
                // If the server visibility didn't change (still visible), and mGivenInsetsReady
                // is set, we won't call into notifyControlChanged. Therefore, we can reset the
                // statsToken, if available.
                ProtoLog.w(WM_DEBUG_IME, "onPostLayout cancel statsToken, ws=%s", ws);
                ProtoLog.w(WM_DEBUG_IME, "onPostLayout cancel statsToken, controlTarget=%s",
                        mControlTarget);
                ImeTracker.forLogging().onCancelled(mStatsToken,
                        ImeTracker.PHASE_WM_POST_LAYOUT_NOTIFY_CONTROLS_CHANGED);
                mStatsToken = null;
            } else if (wasServerVisible && !isServerVisible()) {
                ProtoLog.d(WM_DEBUG_IME, "onPostLayout: setImeShowing(false) was: %s, ws=%s",
                        isImeShowing(), ws);
                ProtoLog.d(WM_DEBUG_IME,
                        "onPostLayout: setImeShowing(false) was: %s, controlTarget=%s",
                        isImeShowing(), mControlTarget);
                setImeShowing(false);
            }
        }