Fix WW wallpaper logging events
We were using WALLPAPER_SELECT for both open category and
wallpaper applied.
Test: manual, builds
Bug: 141386362
Change-Id: If655adcfd05f5090091a6422ba9ef89014219956
Add missing wallpaper id hash
Bug: 141386362
Change-Id: I6b157aa1ecf5d313b0cc03fa69a01a5d23120371
diff --git a/src/com/android/customization/module/StatsLogUserEventLogger.java b/src/com/android/customization/module/StatsLogUserEventLogger.java
index 37c64ac..e604f99 100644
--- a/src/com/android/customization/module/StatsLogUserEventLogger.java
+++ b/src/com/android/customization/module/StatsLogUserEventLogger.java
@@ -53,8 +53,8 @@
@Override
public void logActionClicked(String collectionId, int actionLabelResId) {
- WallpaperStatsLog.write(CODE, StyleEnums.WALLPAPER_EXPLORE, 0, 0, 0, 0, 0, collectionId.hashCode(),
- 0, 0, 0);
+ WallpaperStatsLog.write(CODE, StyleEnums.WALLPAPER_EXPLORE, 0, 0, 0, 0, 0,
+ collectionId.hashCode(), 0, 0, 0);
}
@Override
@@ -65,7 +65,7 @@
@Override
public void logCategorySelected(String collectionId) {
- WallpaperStatsLog.write(CODE, StyleEnums.WALLPAPER_SELECT,
+ WallpaperStatsLog.write(CODE, StyleEnums.WALLPAPER_OPEN_CATEGORY,
0, 0, 0, 0, 0,
collectionId.hashCode(),
0, 0, 0);
@@ -73,10 +73,11 @@
@Override
public void logWallpaperSet(String collectionId, @Nullable String wallpaperId) {
- WallpaperStatsLog.write(CODE, StyleEnums.WALLPAPER_SELECT,
+ WallpaperStatsLog.write(CODE, StyleEnums.WALLPAPER_APPLIED,
0, 0, 0, 0, 0,
collectionId.hashCode(),
- 0, 0, 0);
+ wallpaperId != null ? wallpaperId.hashCode() : 0,
+ 0, 0);
}
@Nullable