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

Commit 44ad7871 authored by Matt Pietal's avatar Matt Pietal
Browse files

AOD Media

Add media back into smartspace content when the new plugin is
enabled. Only show media on AOD when no other content is displayed,
other than the default weather/date card.

Fixes: 185373132
Test: atest KeyguardMediaViewControllerTest

Change-Id: I9a1ff4eaeb4e13ed30c7796c1e9d2d5d46916737
parent 63a50896
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -114,6 +114,11 @@ public interface BcSmartspaceDataPlugin extends Plugin {
         * Set or clear next alarm information
         */
        void setNextAlarm(@Nullable Drawable image, @Nullable String description);

        /**
         * Set or clear device media playing
         */
        void setMediaTarget(@Nullable SmartspaceTarget target);
    }

    /** Interface for launching Intents, which can differ on the lockscreen */
+3 −0
Original line number Diff line number Diff line
@@ -511,6 +511,9 @@ class LockscreenSmartspaceControllerTest : SysuiTestCase() {

        override fun setNextAlarm(image: Drawable?, description: String?) {
        }

        override fun setMediaTarget(target: SmartspaceTarget?) {
        }
    })
}