From f374e60d3055bcf69bef5f557e7adc9709bd629f Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Fri, 23 Feb 2024 14:40:43 +0000 Subject: 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 --- .../com/android/systemui/statusbar/notification/ColorUpdateLogger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ } } -- cgit v1.2.3-59-g8ed1b