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

Commit 6a13e152 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix crash due to incorrectly implemented assert"

parents 34b9804e b94e4982
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -36,8 +36,8 @@ class NotifPipelineFlags @Inject constructor(
        return false
    }

    fun assertLegacyPipelineEnabled(): Nothing =
        error("Old pipeline code running w/ new pipeline enabled")
    fun assertLegacyPipelineEnabled(): Unit =
        check(!isNewPipelineEnabled()) { "Old pipeline code running w/ new pipeline enabled" }

    fun isNewPipelineEnabled(): Boolean =
        featureFlags.isEnabled(Flags.NEW_NOTIFICATION_PIPELINE_RENDERING)