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

Commit 5020af71 authored by Shan Huang's avatar Shan Huang Committed by Android (Google) Code Review
Browse files

Merge "Add the missing isVisible() that CinematicEngine uses." into main

parents 0a6acc76 4401c8ed
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -197,6 +197,16 @@ abstract class LiveWallpaper : WallpaperService() {
            return false
            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. */
        /** Triggers the [WallpaperService] to recompute the Wallpaper Colors. */
        fun notifyWallpaperColorsChanged() {
        fun notifyWallpaperColorsChanged() {
            this.wallpaperServiceEngine?.notifyColorsChanged()
            this.wallpaperServiceEngine?.notifyColorsChanged()