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

Commit 9f74f301 authored by GyeHun Jeon's avatar GyeHun Jeon Committed by android-build-merger
Browse files

Merge "[wm] Fix smallestScreenWidthDp configuration on non default display (1/2)" into qt-dev

am: 604e253c

Change-Id: Ib5a6b65475f432266942c0389a491d28d6548828
parents 661862d8 604e253c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ public class ResourcesManager {
            config.screenLayout = Configuration.reduceScreenLayout(sl,
                    config.screenHeightDp, config.screenWidthDp);
        }
        config.smallestScreenWidthDp = config.screenWidthDp; // assume screen does not rotate
        config.smallestScreenWidthDp = Math.min(config.screenWidthDp, config.screenHeightDp);
        config.compatScreenWidthDp = config.screenWidthDp;
        config.compatScreenHeightDp = config.screenHeightDp;
        config.compatSmallestScreenWidthDp = config.smallestScreenWidthDp;