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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user