mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
@@ -544,17 +544,12 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
// 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<T extends Context & ActivityContext>
|
||||
*/
|
||||
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<T extends Context & ActivityContext>
|
||||
*/
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user