From e5d9f5e43657bcded4340f034dd7b99ca2d33006 Mon Sep 17 00:00:00 2001 From: Jagrut Desai Date: Wed, 21 Feb 2024 13:02:30 -0800 Subject: [PATCH] Fix CellContentDimensionsTest - due to comment font scale issue we were failing. applying fontscale to 1.0f Test: Presubmit Bug: 324910285 Flag: NONE Change-Id: Id2bd12f5b8bb1249e6adba647fceaa0b581bc897 --- .../src/com/android/launcher3/util/CellContentDimensionsTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/com/android/launcher3/util/CellContentDimensionsTest.kt b/tests/src/com/android/launcher3/util/CellContentDimensionsTest.kt index 4770546e51..2294f5f0fe 100644 --- a/tests/src/com/android/launcher3/util/CellContentDimensionsTest.kt +++ b/tests/src/com/android/launcher3/util/CellContentDimensionsTest.kt @@ -39,6 +39,7 @@ class CellContentDimensionsTest { val config = Configuration(runningContext.resources.configuration).apply { this.densityDpi = DisplayMetrics.DENSITY_DEFAULT + fontScale = 1.0f } context = runningContext.createConfigurationContext(config) iconSizeSteps = IconSizeSteps(context!!.resources)