OSDN Git Service

Remove rotation and app bounds from Configuration diff.
authorBryce Lee <brycelee@google.com>
Thu, 27 Jul 2017 21:06:22 +0000 (14:06 -0700)
committerBryce Lee <brycelee@google.com>
Fri, 28 Jul 2017 14:49:01 +0000 (07:49 -0700)
commit0e4a6dfb3facd926a6424b4274bcab9b9734307c
tree0d5e4a8825b0ff6d15776c2e89d6a95dd70e3bd9
parentf2c8a24f56a86c71fb761fc0b2db741a960a9df9
Remove rotation and app bounds from Configuration diff.

The presence of these new flags leads to issues with application that
do not expect their presence. Since these flags can appear at
critical times, such as on orientation change, these issues are
brought to the surface often.

This CL remedies this problem by first removing the rotation
property. It is not used and the original issue of orientation and
Configuration alignment has been addressed. For app bounds, the CL
reverts the behavior back to identifying diffs as a screen size
change.

Fixes: 64004417
Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests
Test: go/wm-smoke

Change-Id: I1fabb564dfb5c13d897336708523cf7cd5099fa0
core/java/android/content/pm/ActivityInfo.java
core/java/android/content/res/Configuration.java
core/java/android/view/Display.java
core/java/android/view/Surface.java
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/wm/DisplayContent.java
services/tests/servicestests/src/com/android/server/wm/AppBoundsTests.java