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

This commit is contained in:
TreeHugger Robot
2019-04-22 18:46:26 +00:00
committed by Android (Google) Code Review

View File

@@ -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;