summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff DeCew <jeffdq@google.com> 2021-11-26 17:32:35 +0000
committer Jeff DeCew <jeffdq@google.com> 2021-11-26 17:37:27 +0000
commitb94e498226d7bd445a69c9d23ed69e3a8812d31c (patch)
tree4f62a7bd0c043203833f0dbb46d98c31cb8d787b
parent61a746733a1796320012943e3f35eed62c915ffc (diff)
Fix crash due to incorrectly implemented assert
Test: manual Change-Id: Ic0ff5614c2f6e20161842097b1975b162955c44d
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/NotifPipelineFlags.kt4
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)