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

Commit 74c6a978 authored by Shawn Lin's avatar Shawn Lin Committed by Gerrit Code Review
Browse files

Merge "Fixed DisplayCutout flaky test"

parents af3061e5 a62e449f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -638,7 +638,8 @@ public final class DisplayCutout {
                return sCachedCutout;
            }
        }
        spec = spec.trim();
        final String specToCache = spec.trim();
        spec = specToCache;
        final float offsetX;
        if (spec.endsWith(RIGHT_MARKER)) {
            offsetX = displayWidth;
@@ -709,7 +710,7 @@ public final class DisplayCutout {

        final Pair<Path, DisplayCutout> result = new Pair<>(p, cutout);
        synchronized (CACHE_LOCK) {
            sCachedSpec = spec;
            sCachedSpec = specToCache;
            sCachedDisplayWidth = displayWidth;
            sCachedDisplayHeight = displayHeight;
            sCachedDensity = density;