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

Commit 6885e867 authored by Darrell Shi's avatar Darrell Shi
Browse files

Add complications supportability to DreamInfo.

Include whether a dream supports complications in DreamInfo.

Bug: 223860510
Test: manual
Change-Id: I1b28f4fd476903e82d09ddf5d47739749019d18c
parent f69c4025
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ public class DreamBackend {
        public ComponentName settingsComponentName;
        public CharSequence description;
        public Drawable previewImage;
        public boolean supportsComplications = false;

        @Override
        public String toString() {
@@ -175,6 +176,7 @@ public class DreamBackend {
            if (dreamMetadata != null) {
                dreamInfo.settingsComponentName = dreamMetadata.settingsActivity;
                dreamInfo.previewImage = dreamMetadata.previewImage;
                dreamInfo.supportsComplications = dreamMetadata.showComplications;
            }
            dreamInfos.add(dreamInfo);
        }