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

Commit 764b0a7f authored by George Lin's avatar George Lin
Browse files

Logging clean unused events (1/3)

Test: Build success
Bug: 299659307
Change-Id: I79e76c98f665f6b6a629928bab66f779d883250e
parent 4327dfc1
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -47,18 +47,6 @@ class StatsLogUserEventLogger(
            .log()
    }

    override fun logIndividualWallpaperSelected(collectionId: String) {
        SysUiStatsLogger(StyleEnums.WALLPAPER_SELECT)
            .setWallpaperCategoryHash(getIdHashCode(collectionId))
            .log()
    }

    override fun logCategorySelected(collectionId: String) {
        SysUiStatsLogger(StyleEnums.WALLPAPER_OPEN_CATEGORY)
            .setWallpaperCategoryHash(getIdHashCode(collectionId))
            .log()
    }

    override fun logSnapshot() {
        val isLockWallpaperSet = wallpaperStatusChecker.isLockWallpaperSet()
        val homeCollectionId = preferences.homeWallpaperCollectionId
@@ -83,7 +71,7 @@ class StatsLogUserEventLogger(
            .log()
    }

    override fun logWallpaperSet(
    override fun logWallpaperApplied(
        collectionId: String?,
        wallpaperId: String?,
        effects: String?,
@@ -135,10 +123,6 @@ class StatsLogUserEventLogger(
            .log()
    }

    override fun logGridSelected(grid: GridOption) {
        SysUiStatsLogger(StyleEnums.PICKER_SELECT).setLauncherGrid(grid.cols).log()
    }

    override fun logGridApplied(grid: GridOption) {
        SysUiStatsLogger(StyleEnums.PICKER_APPLIED).setLauncherGrid(grid.cols).log()
    }
+0 −4
Original line number Diff line number Diff line
@@ -29,9 +29,5 @@ interface ThemesUserEventLogger : UserEventLogger {
     */
    fun logColorApplied(action: Int, colorOption: ColorOption)

    /**  */
    fun logGridSelected(grid: GridOption)

    /**  */
    fun logGridApplied(grid: GridOption)
}
+0 −2
Original line number Diff line number Diff line
@@ -25,7 +25,5 @@ class TestThemesUserEventLogger : TestUserEventLogger(), ThemesUserEventLogger {

    override fun logColorApplied(action: Int, colorOption: ColorOption) {}

    override fun logGridSelected(grid: GridOption) {}

    override fun logGridApplied(grid: GridOption) {}
}