commit | 89f5b3e4e1a71076238f0e45c18122fb70f97249 | [log] [tgz] |
---|---|---|
author | Alina Zaidi <alinazaidi@google.com> | Tue Apr 20 10:11:01 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Apr 20 10:11:01 2021 +0000 |
tree | 549dff0e3e3c13db5dc2d4cd7ad562ba300e0b3a | |
parent | 2cabb0aef4d2183cf88c3aa0242fe9ba045905ca [diff] | |
parent | b89c991bab8ac1001639af221773d326ffa36d6a [diff] |
Merge "On exit search in widget picker, make recommended widgets table visible only if recommended widgets are available." into sc-dev am: b89c991bab Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14234628 Change-Id: I9a0efdd27c3ce448589ca2756f28b5bafe5c41d9
diff --git a/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java b/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java index 2bba316..bf1e8c2 100644 --- a/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java +++ b/src/com/android/launcher3/widget/picker/WidgetsFullSheet.java
@@ -435,8 +435,11 @@ private void setViewVisibilityBasedOnSearch(boolean isInSearchMode) { mIsInSearchMode = isInSearchMode; - mSearchAndRecommendationViewHolder.mRecommendedWidgetsTable - .setVisibility(isInSearchMode ? GONE : VISIBLE); + if (isInSearchMode) { + mSearchAndRecommendationViewHolder.mRecommendedWidgetsTable.setVisibility(GONE); + } else { + onRecommendedWidgetsBound(); + } if (mHasWorkProfile) { mViewPager.setVisibility(isInSearchMode ? GONE : VISIBLE); mTabsView.setVisibility(isInSearchMode ? GONE : VISIBLE);