diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt index 9bf21d1e1a26..1d0edfaa6b5c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt @@ -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) |