Merge "folderChild icon and text size should follow the respective configuration" into tm-qpr-dev am: 37292eb230
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20794888 Change-Id: I429c6fb98ae7907aad3569a38c8167e4f8d72fb9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
369fd22fba
1 file changed
+2
-5
@@ -1048,12 +1048,9 @@ public class DeviceProfile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateFolderCellSize(float scale, Resources res) {
|
private void updateFolderCellSize(float scale, Resources res) {
|
||||||
float invIconSizeDp = isVerticalBarLayout()
|
float invIconSizeDp = inv.iconSize[mTypeIndex];
|
||||||
? inv.iconSize[INDEX_LANDSCAPE]
|
|
||||||
: inv.iconSize[INDEX_DEFAULT];
|
|
||||||
folderChildIconSizePx = Math.max(1, pxFromDp(invIconSizeDp, mMetrics, scale));
|
folderChildIconSizePx = Math.max(1, pxFromDp(invIconSizeDp, mMetrics, scale));
|
||||||
folderChildTextSizePx =
|
folderChildTextSizePx = pxFromSp(inv.iconTextSize[mTypeIndex], mMetrics, scale);
|
||||||
pxFromSp(inv.iconTextSize[INDEX_DEFAULT], mMetrics, scale);
|
|
||||||
folderLabelTextSizePx = Math.max(pxFromSp(MIN_FOLDER_TEXT_SIZE_SP, mMetrics),
|
folderLabelTextSizePx = Math.max(pxFromSp(MIN_FOLDER_TEXT_SIZE_SP, mMetrics),
|
||||||
(int) (folderChildTextSizePx * folderLabelTextScale));
|
(int) (folderChildTextSizePx * folderLabelTextScale));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user