OSDN Git Service

Don't let top activity to influence the orientation
authorAndrii Kulian <akulian@google.com>
Thu, 24 May 2018 00:01:37 +0000 (17:01 -0700)
committerAndrii Kulian <akulian@google.com>
Thu, 24 May 2018 21:51:23 +0000 (14:51 -0700)
commit0918d3674fe596cec7208c496edde7f11fcb9b80
treeaa0361069689aa1e862b0dbc5d3430f79f28d999
parent478923bded903aa2e9e0357a61141053df20f590
Don't let top activity to influence the orientation

An activity shouldn't influence the orientation of the device
just because it is currently on top, since it may be in the process
of being removed or covered by something else.

Bug: 76011287
Test: ActivityManagerAppConfigurationTests
Test: AppWindowTokenTests
Change-Id: Ie0660f9c935ab95100c107fa1331ef1c10898626
services/core/java/com/android/server/wm/AppWindowToken.java
services/tests/servicestests/src/com/android/server/wm/AppWindowTokenTests.java