Merge "Only update detail text when adapter is not null" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
825b979f81
@@ -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