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

Commit 4401c8ed authored by Shan Huang's avatar Shan Huang
Browse files

Add the missing isVisible() that CinematicEngine uses.

Bug: 344054427
Test: m -j
Flag: EXEMPT adding new method
Change-Id: I44f5ecd7f55226639b78f79e06ee2ad7ab9e4384
parent 25602792
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -197,6 +197,16 @@ abstract class LiveWallpaper : WallpaperService() {
            return false
        }

        /**
         * Returns the information if the wallpaper is visible.
         */
        fun isVisible(): Boolean {
            this.wallpaperServiceEngine?.let {
                return it.isVisible
            }
            return false
        }

        /** Triggers the [WallpaperService] to recompute the Wallpaper Colors. */
        fun notifyWallpaperColorsChanged() {
            this.wallpaperServiceEngine?.notifyColorsChanged()