diff options
author | Kevin <kevhan@google.com> | 2019-04-12 15:41:49 -0700 |
---|---|---|
committer | Kevin Han <kevhan@google.com> | 2019-04-23 19:23:57 +0000 |
commit | e47543d03f4eb0df5532e7dcc99492f8a3d76432 (patch) | |
tree | 53ec9f5042704004a507b89b1b1d62e14734ba4a /go/quickstep | |
parent | 29cdac41f1352e7b36eb05f483417c5666048cbb (diff) | |
download | android_packages_apps_Trebuchet-e47543d03f4eb0df5532e7dcc99492f8a3d76432.tar.gz android_packages_apps_Trebuchet-e47543d03f4eb0df5532e7dcc99492f8a3d76432.tar.bz2 android_packages_apps_Trebuchet-e47543d03f4eb0df5532e7dcc99492f8a3d76432.zip |
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 f1a47a0fe6e3b6f2071f8a30ac24d7522040d76c)
Diffstat (limited to 'go/quickstep')
-rw-r--r-- | go/quickstep/src/com/android/quickstep/views/IconRecentsView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java index 41f25105c..47244068c 100644 --- a/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java +++ b/go/quickstep/src/com/android/quickstep/views/IconRecentsView.java @@ -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(); |