mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
* commit '87e560bc798221fc857d4380be90dc6b78021fd2': Fixing calculation of # of rows in All Apps
This commit is contained in:
@@ -174,7 +174,9 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All
|
||||
|
||||
availableHeight -= mPageLayoutPaddingTop + mPageLayoutPaddingBottom;
|
||||
availableHeight -= cellHeight; // Assume at least one row
|
||||
availableHeight -= screenHeight * 0.16f;
|
||||
Resources r = getContext().getResources();
|
||||
float scaleFactor = r.getInteger(R.integer.config_allAppsZoomScaleFactor) / 100f;
|
||||
availableHeight -= screenHeight * scaleFactor;
|
||||
if (availableHeight > 0) {
|
||||
return Math.min(mMaxCellCountY,
|
||||
1 + availableHeight / (cellHeight + mPageLayoutHeightGap));
|
||||
|
||||
Reference in New Issue
Block a user