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

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

Fix crash due to incorrectly implemented assert

Test: manual
Change-Id: Ic0ff5614c2f6e20161842097b1975b162955c44d
parent 61a74673
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)