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

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

Change-Id: Iaadd98eb47e86ef63d6c35868abcba47177e9fb7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Simranjit Kohli
2022-09-24 05:18:19 +00:00
committed by Automerger Merge Worker
2 changed files with 9 additions and 1 deletions

View File

@@ -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,
AutofillId currentViewId) {
mEventInternal.ifPresent(event -> {

View File

@@ -3009,7 +3009,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
if (sDebug) {
Slog.d(TAG, "Set the response has expired.");
}
mPresentationStatsEventLogger.maybeSetNoPresentationEventReason(
mPresentationStatsEventLogger.maybeSetNoPresentationEventReasonIfNoReasonExists(
NOT_SHOWN_REASON_VIEW_CHANGED);
mPresentationStatsEventLogger.logAndEndEvent();
return;