diff options
author | Santiago Etchebehere <santie@google.com> | 2019-09-21 21:33:22 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-09-21 21:33:22 -0700 |
commit | 9dcf1b7011a031ace23054a6b76ae98c7f2808cf (patch) | |
tree | 0ec013b648cebf24d9a5c442df5eb532799df28b | |
parent | 8a1338d9632d47f21f4f3cd2a73b8c4a1c988d79 (diff) | |
parent | b45c8c365ba23344409220d8ca5a20621659886a (diff) | |
download | ThemePicker-9dcf1b7011a031ace23054a6b76ae98c7f2808cf.tar.gz |
Fix WW wallpaper logging events
am: b45c8c365b
Change-Id: Id1c4ca09c0943040af1cb23da88959e8164373c9
-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 |