Skip to content

Commit

Permalink
Fixed keyboard disappear on empty search
Browse files Browse the repository at this point in the history
- Closes : #4095
  • Loading branch information
MrSluffy committed Jun 22, 2024
1 parent f131f28 commit 43a5cc7
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,17 +544,12 @@ public void onActivePageChanged(int currentActivePage) {
// 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);
}

Expand Down Expand Up @@ -846,7 +841,7 @@ public int getFloatingSearchBarRestingMarginBottom() {
*/
public int getFloatingSearchBarRestingMarginStart() {
DeviceProfile dp = mActivityContext.getDeviceProfile();
return dp.allAppsLeftRightMargin + dp.getAllAppsIconStartMargin(mContext);
return dp.allAppsLeftRightMargin + dp.getAllAppsIconStartMargin(mActivityContext);
}

/**
Expand All @@ -862,7 +857,7 @@ public int getFloatingSearchBarRestingMarginStart() {
*/
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) {
Expand Down

0 comments on commit 43a5cc7

Please sign in to comment.