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

Commit c78949eb authored by Simranjit Kohli's avatar Simranjit Kohli Committed by Automerger Merge Worker
Browse files

Merge "[FillDialog] : Fix case to log no focus with Fill Dialog" into...

Merge "[FillDialog] : Fix case to log no focus with Fill Dialog" into tm-qpr-dev am: 5096f148 am: b43376ab

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20036997



Change-Id: Iaadd98eb47e86ef63d6c35868abcba47177e9fb7
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e1b8f01e b43376ab
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -133,6 +133,14 @@ public final class PresentationStatsEventLogger {
        });
        });
    }
    }


    public void maybeSetNoPresentationEventReasonIfNoReasonExists(@NotShownReason int reason) {
        mEventInternal.ifPresent(event -> {
            if (event.mCountShown == 0 && event.mNoPresentationReason == NOT_SHOWN_REASON_UNKNOWN) {
                event.mNoPresentationReason = reason;
            }
        });
    }

    public void maybeSetAvailableCount(@Nullable List<Dataset> datasetList,
    public void maybeSetAvailableCount(@Nullable List<Dataset> datasetList,
            AutofillId currentViewId) {
            AutofillId currentViewId) {
        mEventInternal.ifPresent(event -> {
        mEventInternal.ifPresent(event -> {
+1 −1
Original line number Original line Diff line number Diff line
@@ -3009,7 +3009,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
            if (sDebug) {
            if (sDebug) {
                Slog.d(TAG, "Set the response has expired.");
                Slog.d(TAG, "Set the response has expired.");
            }
            }
            mPresentationStatsEventLogger.maybeSetNoPresentationEventReason(
            mPresentationStatsEventLogger.maybeSetNoPresentationEventReasonIfNoReasonExists(
                        NOT_SHOWN_REASON_VIEW_CHANGED);
                        NOT_SHOWN_REASON_VIEW_CHANGED);
            mPresentationStatsEventLogger.logAndEndEvent();
            mPresentationStatsEventLogger.logAndEndEvent();
            return;
            return;