Merge "Make sure we do not make UI calls from background thread in DashboardSummary class." into pi-dev am: e3813863b7

am: 1378ebfcca

Change-Id: Ib0f7223226bfe4b5cc95672d1f2efe1b7ce4c009
This commit is contained in:
Rajeev Kumar
2018-05-15 13:12:20 -07:00
committed by android-build-merger

View File

@@ -276,7 +276,7 @@ public class DashboardSummary extends InstrumentedFragment
mSummaryLoader.updateSummaryToCache(category); mSummaryLoader.updateSummaryToCache(category);
mStagingCategory = category; mStagingCategory = category;
if (mSuggestionControllerMixin == null) { if (mSuggestionControllerMixin == null) {
mAdapter.setCategory(mStagingCategory); ThreadUtils.postOnMainThread(() -> mAdapter.setCategory(mStagingCategory));
return; return;
} }
if (mSuggestionControllerMixin.isSuggestionLoaded()) { if (mSuggestionControllerMixin.isSuggestionLoaded()) {