diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index 6195aa685e..6c660df61e 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -544,17 +544,12 @@ public class ActivityAllAppsContainerView // Will be called at the end of the animation. return; } - if (currentActivePage != SEARCH) { - mActivityContext.hideKeyboard(); - } if (mAH.get(currentActivePage).mRecyclerView != null) { mAH.get(currentActivePage).mRecyclerView.bindFastScrollbar(mFastScroller); } // Header keeps track of active recycler view to properly render header // protection. mHeader.setActiveRV(currentActivePage); - reset(true /* animate */, !isSearching() /* exitSearch */); - mWorkManager.onActivePageChanged(currentActivePage); } @@ -846,7 +841,7 @@ public class ActivityAllAppsContainerView */ public int getFloatingSearchBarRestingMarginStart() { DeviceProfile dp = mActivityContext.getDeviceProfile(); - return dp.allAppsLeftRightMargin + dp.getAllAppsIconStartMargin(mContext); + return dp.allAppsLeftRightMargin + dp.getAllAppsIconStartMargin(mActivityContext); } /** @@ -862,7 +857,7 @@ public class ActivityAllAppsContainerView */ public int getFloatingSearchBarRestingMarginEnd() { DeviceProfile dp = mActivityContext.getDeviceProfile(); - return dp.allAppsLeftRightMargin + dp.getAllAppsIconStartMargin(mContext); + return dp.allAppsLeftRightMargin + dp.getAllAppsIconStartMargin(mActivityContext); } private void layoutBelowSearchContainer(View v, boolean includeTabsMargin) {