summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Victor Chang <vichang@google.com> 2024-02-23 14:40:43 +0000
committer Victor Chang <vichang@google.com> 2024-02-23 14:40:43 +0000
commitf374e60d3055bcf69bef5f557e7adc9709bd629f (patch)
tree7e04a9bf9855bc6367912a5121534091041d53bc
parent1af0b2d8c0a3101ce0faa6e8a648729de659eb7d (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
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/ColorUpdateLogger.kt2
1 files changed, 1 insertions, 1 deletions
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 c416d434a8fb..0f0ab2e36b8d 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 @@ constructor(
fun trim() {
if (events.size > maxEventsPerFrame) {
- events.removeFirst()
+ events.removeAt(0)
trimmedEvents++
}
}