Log FIELD_AUTOFILL_SESSION_ID as string.

Test: adb shell logcat -b events | grep 1456  # Example:

06-05 22:20:19.760 15733 16200 I sysui_multi_action: [757,906,758,4,806,com.example.android.autofill.app,871,com.example.android.autofill.app.commoncases.StandardSignInActivity,908,com.example.android.autofill.service,1452,0,1456,2033624394]

Fixes: 80093094

Change-Id: I784fa5549193e0bae0ed453b21d3d2c8fb01035c
This commit is contained in:
Felipe Leme
2018-06-05 15:14:21 -07:00
parent f4833c4fb2
commit 5b4c4a8276

View File

@@ -114,7 +114,7 @@ public final class Helper {
int sessionId, boolean compatMode) {
final LogMaker log = new LogMaker(category)
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_SERVICE, servicePackageName)
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_SESSION_ID, sessionId);
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_SESSION_ID, Integer.toString(sessionId));
if (compatMode) {
log.addTaggedData(MetricsEvent.FIELD_AUTOFILL_COMPAT_MODE, 1);
}