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

Commit 821c75ec authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

Add setOffsetNotificationEnabled for Torus

To enable parallax, MagicPortraitEngine will listen to the offset
changes.

Bug: 329855848
Test: build
Change-Id: Icff3828677d0248cdcd0b65d8514ab38d2ac2a31
parent c50157ce
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -216,6 +216,10 @@ abstract class LiveWallpaper : WallpaperService() {
            return WALLPAPER_FLAG_NOT_FOUND
        }

        fun setOffsetNotificationsEnabled(enabled: Boolean) {
            this.wallpaperServiceEngine?.setOffsetNotificationsEnabled(enabled)
        }

        internal fun setServiceEngineReference(wallpaperServiceEngine: WallpaperService.Engine) {
            this.wallpaperServiceEngine = wallpaperServiceEngine
        }