Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b45c8c36 authored by Santiago Etchebehere's avatar Santiago Etchebehere Committed by Hyunyoung Song
Browse files

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
parent 9ac40093
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -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