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

Commit c194f9b4 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Re-add the PromotedNotificationContentModel flag validation as Log.e

Bug: 381916615
Flag: EXEMPT re-adding a log
Test: presubmit
Change-Id: If3c660f54ec88cba247942c3e09383a82f57c7b9
parent 1cfb8c70
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ package com.android.systemui.statusbar.notification.shared

import android.app.PendingIntent
import android.graphics.drawable.Icon
import android.util.Log
import com.android.systemui.statusbar.StatusBarIconView
import com.android.systemui.statusbar.notification.promoted.shared.model.PromotedNotificationContentModel
import com.android.systemui.statusbar.notification.stack.PriorityBucket
@@ -85,6 +86,15 @@ data class ActiveNotificationModel(
     */
    val promotedContent: PromotedNotificationContentModel?,
) : ActiveNotificationEntryModel() {
    init {
        if (!PromotedNotificationContentModel.featureFlagEnabled()) {
            if (promotedContent != null) {
                // TODO(b/401018545): convert to Log.wtf and fix tests (see: ag/32114199)
                Log.e(TAG, "passing non-null promoted content without feature flag enabled")
            }
        }
    }

    companion object {
        private const val TAG = "ActiveNotificationEntryModel"
    }