Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81c1b048 authored by Saeid Farivar Asanjan's avatar Saeid Farivar Asanjan
Browse files

Fix android.server.wm.other.CompatScaleTests tests

Bug: 296062010
Test: atest android.server.wm.other.CompatScaleTests#test_scalesCorrectly
Change-Id: I87f8cd256ff4ca01e38e5892823ba495d32b24e3
parent 02cb1f53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ public final class CompatModePackages {
        final float appScale = compatScale != null
                ? compatScale.mScaleFactor
                : getCompatScale(ai.packageName, ai.uid, /* checkProvider= */ false);
        final float densityScale = compatScale != null ? compatScale.mDensityScaleFactor : 1f;
        final float densityScale = compatScale != null ? compatScale.mDensityScaleFactor : appScale;
        final Configuration config = mService.getGlobalConfiguration();
        return new CompatibilityInfo(ai, config.screenLayout, config.smallestScreenWidthDp,
                forceCompat, appScale, densityScale);