Update Go recents visibility based off adapter

View visibility should be based off adapter since that's what the layout
items are based off of.

Bug: 130440957
Test: Loading UI is shown when going to recents Go
Change-Id: I1f167553b6fdce757865c739b9793b63a20e7f57
(cherry picked from commit f1a47a0fe6)
This commit is contained in:
Kevin
2019-04-12 15:41:49 -07:00
committed by Kevin Han
parent 29cdac41f1
commit e47543d03f
@@ -334,7 +334,7 @@ public final class IconRecentsView extends FrameLayout {
* of tasks.
*/
private void updateContentViewVisibility() {
int taskListSize = mTaskLoader.getCurrentTaskList().size();
int taskListSize = mTaskAdapter.getItemCount();
if (mEmptyView.getVisibility() != VISIBLE && taskListSize == 0) {
crossfadeViews(mEmptyView, mContentView);
mActivityHelper.leaveRecents();