Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85a70418 authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

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
parent bbb17ae4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {