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

Commit c38c1aab authored by Aurélien Pomini's avatar Aurélien Pomini Committed by Android (Google) Code Review
Browse files

Merge "Correctly compute a physical surface." into main

parents 76490e96 c1d77a5b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -96,7 +96,8 @@ class WallpaperDisplayHelper {
            }
            if (populateOrientationPairs) {
                int orientation = WallpaperManager.getOrientation(displaySize);
                float newSurface = displaySize.x * displaySize.y * metric.getDensity();
                float newSurface = displaySize.x * displaySize.y
                        / (metric.getDensity() * metric.getDensity());
                if (surface <= 0) {
                    surface = newSurface;
                    firstOrientation = orientation;