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

Commit ddbf42ea authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only call NotifEntry#getPromotedNotifContentModel when flag enabled." into main

parents f5dc70ff c6d18dc3
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -152,6 +152,13 @@ private class ActiveNotificationsStoreBuilder(
            } else {
                null
            }
        val promotedContent =
            if (PromotedNotificationContentModel.featureFlagEnabled()) {
                promotedNotificationContentModel
            } else {
                null
            }

        return existingModels.createOrReuse(
            key = key,
            groupKey = sbn.groupKey,
@@ -174,7 +181,7 @@ private class ActiveNotificationsStoreBuilder(
            isGroupSummary = sbn.notification.isGroupSummary,
            bucket = bucket,
            callType = sbn.toCallType(),
            promotedContent = promotedNotificationContentModel,
            promotedContent = promotedContent,
        )
    }
}