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

Commit aaa7cce5 authored by Haoran Zhang's avatar Haoran Zhang
Browse files

[Autofill Framework] Add a debug log to help with triaging.

Currently when AutofillManager receives the view become invisible notification, it first checks whether client is visible (whether activity is stopped) before updating the visible/invisible tracked set.

However we don't have debug log printing out this event, which makes the issue hard to see.

Adding a debug log would make triaging the root cause b/333952473 much easier.

Bug:b/349185460
Test: atest CtsAutoFillServiceTestCases
Flag: EXEMPT bugfix

Change-Id: I1f271e2057d8cc24796578b3e36a6c9aceda3e10
parent ad1400b7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4322,6 +4322,13 @@ public final class AutofillManager {
                        addToSet(mInvisibleDialogTrackedIds, id);
                    }
                }
            } else {
                if (sDebug) {
                    // isClientVisibleForAutofillLocked() is checking whether
                    // activity has stopped under the hood
                    Log.d(TAG, "notifyViewVisibilityChangedLocked(): ignoring "
                            + "view visibility change since activity has stopped");
                }
            }

            if (mIsTrackedSaveView && mVisibleTrackedIds.isEmpty()) {