fix: align home screen icons based on text size (#6921)
* Align icons based on text size * chore: Apply suggestions --------- Co-authored-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
13920b37f1
commit
61fb6decdf
1 file changed
+4
-2
@@ -1201,6 +1201,10 @@ public class DeviceProfile {
|
||||
final boolean isVerticalLayout = isVerticalBarLayout();
|
||||
cellLayoutBorderSpacePx = getCellLayoutBorderSpace(inv, scale);
|
||||
|
||||
// Lawnchair: Get initial text size before calculating layout
|
||||
// This scales offset with text sizing, all the way down to zero
|
||||
iconTextSizePx *= mTextFactors.getIconTextSizeFactor();
|
||||
|
||||
if (mIsResponsiveGrid) {
|
||||
cellWidthPx = mResponsiveWorkspaceWidthSpec.getCellSizePx();
|
||||
cellHeightPx = mResponsiveWorkspaceHeightSpec.getCellSizePx();
|
||||
@@ -1314,8 +1318,6 @@ public class DeviceProfile {
|
||||
}
|
||||
}
|
||||
|
||||
iconTextSizePx *= mTextFactors.getIconTextSizeFactor();
|
||||
|
||||
// All apps
|
||||
if (mIsResponsiveGrid) {
|
||||
mAllAppsProfile = AllAppsProfile.Factory.createAllAppsWithResponsive(
|
||||
|
||||
Reference in new issue
Block a user