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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user