Merge "Fix crash due to incorrectly implemented assert"

This commit is contained in:
TreeHugger Robot
2021-11-28 17:38:13 +00:00
committed by Android (Google) Code Review

View File

@@ -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)