diff options
author | Santiago Etchebehere <santie@google.com> | 2019-09-19 11:06:04 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2019-09-20 22:28:15 +0000 |
commit | b45c8c365ba23344409220d8ca5a20621659886a (patch) | |
tree | 0ec013b648cebf24d9a5c442df5eb532799df28b | |
parent | 9ac40093460f1ae7c71a2f2e1dda5e41d70c5223 (diff) | |
download | ThemePicker-b45c8c365ba23344409220d8ca5a20621659886a.tar.gz |
Fix WW wallpaper logging eventsandroid-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android10-qpr1-mainline-release
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
-rw-r--r-- | src/com/android/customization/module/StatsLogUserEventLogger.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/com/android/customization/module/StatsLogUserEventLogger.java b/src/com/android/customization/module/StatsLogUserEventLogger.java index 37c64ac4..e604f999 100644 --- a/src/com/android/customization/module/StatsLogUserEventLogger.java +++ b/src/com/android/customization/module/StatsLogUserEventLogger.java @@ -53,8 +53,8 @@ public class StatsLogUserEventLogger extends NoOpUserEventLogger implements Them @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 @@ public class StatsLogUserEventLogger extends NoOpUserEventLogger implements Them @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 @@ public class StatsLogUserEventLogger extends NoOpUserEventLogger implements Them @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 |