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

Commit 4830067c authored by jiewenlei's avatar jiewenlei
Browse files

Log selected dataset id regradless of authentication result.

Authentication result is logged separately in another field.

Test: m
Bug: 278920289
Change-Id: Id973d69527fa4f015beffad722ad80cbabc3b028
parent 4adfb70d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -5086,13 +5086,14 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
                        + id + " destroyed");
                return;
            }
            // Selected dataset id is logged regardless of authentication result.
            mPresentationStatsEventLogger.maybeSetSelectedDatasetId(datasetIndex);
            mPresentationStatsEventLogger.maybeSetSelectedDatasetPickReason(
                dataset.getEligibleReason());
            // Autofill it directly...
            if (dataset.getAuthentication() == null) {
                if (generateEvent) {
                    mService.logDatasetSelected(dataset.getId(), id, mClientState, uiType);
                    mPresentationStatsEventLogger.maybeSetSelectedDatasetId(datasetIndex);
                    mPresentationStatsEventLogger.maybeSetSelectedDatasetPickReason(
                            dataset.getEligibleReason());
                }
                if (mCurrentViewId != null) {
                    mInlineSessionController.hideInlineSuggestionsUiLocked(mCurrentViewId);