commit | f374e60d3055bcf69bef5f557e7adc9709bd629f | [log] [tgz] |
---|---|---|
author | Victor Chang <vichang@google.com> | Fri Feb 23 14:40:43 2024 +0000 |
committer | Victor Chang <vichang@google.com> | Fri Feb 23 14:40:43 2024 +0000 |
tree | 7e04a9bf9855bc6367912a5121534091041d53bc | |
parent | 1af0b2d8c0a3101ce0faa6e8a648729de659eb7d [diff] |
Avoid NoSuchMethodError of List.removeFirst() on 24Q2 It's a temporary problem on 24Q2 before the new API lands on 24Q3. In this CL, the callsite is fixed to avoid calling the API that doesn't exist on 24Q2. This CL tries to fix the problem caused between mainline and the new flag system. Flag: None Bug: 325223792 Bug: 326109524 Test: m droid Change-Id: I1d32a7e1878c176dc08e60284853ccb64d649866
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/ColorUpdateLogger.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/ColorUpdateLogger.kt index c416d43..0f0ab2e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/ColorUpdateLogger.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/ColorUpdateLogger.kt
@@ -108,7 +108,7 @@ fun trim() { if (events.size > maxEventsPerFrame) { - events.removeFirst() + events.removeAt(0) trimmedEvents++ } }