OSDN Git Service

[wm] Fix smallestScreenWidthDp configuration on non default display (1/2)
authorGyeHun Jeon <gyehun.jeon@samsung.com>
Fri, 19 Apr 2019 18:30:56 +0000 (11:30 -0700)
committerVishnu Nair <vishnun@google.com>
Mon, 22 Apr 2019 15:32:45 +0000 (08:32 -0700)
commit61cac3a333116cf316719b1502368632a7474760
treee622c5d1dc30d0a982d574bc49d201dd3960906f
parent6805b6ae0d574f44fd7985e76bd6b9556f390312
[wm] Fix smallestScreenWidthDp configuration on non default display (1/2)

smallestScreenWidthDp configuration should be set to smallest possible size.
This could cause unexpected resources to be loaded based on the incorrect configuration. So it
should be set as minimum size of screenWidthDp and screenHeightDp to account for rotation.

Test: reproduce test steps in bug
Test: atest CtsWindowManagerDeviceTestCases:DisplayTests
Bug: 129521230
Change-Id: I07403294e8fe6e6ad7aa718c8a5948aff4fafae1
(cherry picked from commit 7671d7042d60944813f36a03b74199c5a3d737ad)
core/java/android/app/ResourcesManager.java