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

Commit 03d93f3b authored by John Pan's avatar John Pan
Browse files

Add metrics for foreground download wallpaper effect readiness.

Bug: 290552079
Test: Manual
Change-Id: Iab4f920113280630403085fe13c7fc7cdc1c7649
parent e843d48a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -163,6 +163,16 @@ public class StatsLogUserEventLogger extends NoOpUserEventLogger implements Them
                .log();
    }

    @Override
    public void logEffectForegroundDownload(String effect, @EffectStatus int status,
            long timeElapsedMillis) {
        new SysUiStatsLogger(StyleEnums.WALLPAPER_EFFECT_FG_DOWNLOAD)
                .setEffectPreference(status)
                .setEffectIdHash(getIdHashCode(effect))
                .setTimeElapsed(timeElapsedMillis)
                .log();
    }

    @Nullable
    private String getThemePackage(ThemeBundle theme, String category) {
        Map<String, String> packages = theme.getPackagesByCategory();