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

Commit daab0e8d authored by Lyn's avatar Lyn
Browse files

Make VisualInterruptionFilter reason immutable and override in subclass

Bug: 321089634
Test: adb shell cmd statusbar echo -b NotifInterruptLog:verbose
Flag: ACONFIG notification_avalanche_suppression DEVELOPMENT
Change-Id: I3ec31b66ba1b4b8b1cd664dee0749a812e5e045b
parent a754a3b3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -238,6 +238,9 @@ class AvalancheSuppressor(
    ) {
    val TAG = "AvalancheSuppressor"

    override var reason: String = "avalanche"
        protected set

    enum class State {
        ALLOW_CONVERSATION_AFTER_AVALANCHE,
        ALLOW_HIGH_PRIORITY_CONVERSATION_ANY_TIME,
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ abstract class VisualInterruptionCondition(
/** A reason why visual interruptions might be suppressed based on the notification. */
abstract class VisualInterruptionFilter(
    override val types: Set<VisualInterruptionType>,
    override var reason: String,
    override val reason: String,
    override val uiEventId: UiEventEnum? = null,
    override val eventLogData: EventLogData? = null
) : VisualInterruptionSuppressor {