From 85a70418db0b7293e18c506dda12e3ff4aee779b Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Thu, 1 Apr 2021 09:25:29 -0700 Subject: Only update detail text when adapter is not null Test: adb shell settings put global animator_duration_scale 10, open and close user detail panel, observe that text does not change while transition is animating Bug: 184045860 Change-Id: Id55a619455bfa4459b5711647a9ccedd527ef235 --- packages/SystemUI/src/com/android/systemui/qs/QSDetail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSDetail.java b/packages/SystemUI/src/com/android/systemui/qs/QSDetail.java index d54d3f21f0b6..9a889e0ff088 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSDetail.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSDetail.java @@ -210,6 +210,7 @@ public class QSDetail extends LinearLayout { mDetailAdapter = adapter; listener = mHideGridContentWhenDone; setVisibility(View.VISIBLE); + updateDetailText(); } else { if (wasShowingDetail) { Dependency.get(MetricsLogger.class).hidden(mDetailAdapter.getMetricsCategory()); @@ -223,7 +224,6 @@ public class QSDetail extends LinearLayout { mQsPanelController.setGridContentVisibility(true); mQsPanelCallback.onScanStateChanged(false); } - updateDetailText(); sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED); if (mShouldAnimate) { -- cgit v1.2.3-59-g8ed1b