MetricId: Avoid byte[] and string ambiguity

Passing null to the function will result in conflict with Bluetooth proto
(int int int byte[] int)
Bug: 122571213
Test: Build

Change-Id: I2d1c3896d5d850a81a987aded14e3f0c05558e8c
This commit is contained in:
Chen Chen
2020-03-09 18:17:18 -07:00
parent 7eada07c97
commit 24344d5001

View File

@@ -30,7 +30,7 @@ public class StatsLogWriter implements LogWriter {
attribution, /* from pageId */ attribution, /* from pageId */
SettingsEnums.PAGE_VISIBLE /* action */, SettingsEnums.PAGE_VISIBLE /* action */,
pageId, /* target pageId */ pageId, /* target pageId */
null /* changedPreferenceKey */, "" /* changedPreferenceKey */,
latency /* changedPreferenceIntValue */); latency /* changedPreferenceIntValue */);
} }
@@ -40,7 +40,7 @@ public class StatsLogWriter implements LogWriter {
SettingsEnums.PAGE_UNKNOWN /* attribution */, SettingsEnums.PAGE_UNKNOWN /* attribution */,
SettingsEnums.PAGE_HIDE /* action */, SettingsEnums.PAGE_HIDE /* action */,
pageId, pageId,
null /* changedPreferenceKey */, "" /* changedPreferenceKey */,
visibleTime /* changedPreferenceIntValue */); visibleTime /* changedPreferenceIntValue */);
} }