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

Commit 1b5037f7 authored by Felix Stern's avatar Felix Stern
Browse files

Add ImeTracker onFailed when calling window != ime input target

Change-Id: Id9cff2f3a85ff1fda8ea54b1ffeb9130cfccbda6
Test: None, logs only
Bug: 353463205
Bug: 378042801
Flag: android.view.inputmethod.refactor_insets_controller
parent 22a05e81
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -286,7 +286,12 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
                if (isImeInputTarget(caller)) {
                    reportImeInputTargetStateToControlTarget(caller, controlTarget, statsToken);
                } else {
                    // TODO(b/353463205) add ImeTracker?
                    ProtoLog.w(WM_DEBUG_IME,
                            "Tried to update client visibility for non-IME input target %s "
                                    + "(current target: %s)",
                            caller, mDisplayContent.getImeInputTarget());
                    ImeTracker.forLogging().onFailed(statsToken,
                            ImeTracker.PHASE_SERVER_UPDATE_CLIENT_VISIBILITY);
                }
            }
            return false;