OSDN Git Service

Allow opening activity to specify orientation.
authorBryce Lee <brycelee@google.com>
Tue, 24 Jan 2017 19:05:01 +0000 (11:05 -0800)
committerBryce Lee <brycelee@google.com>
Wed, 1 Feb 2017 20:41:25 +0000 (12:41 -0800)
commita163b76570d15e0bbfd318b2962c4966a8a538e5
tree241f9707cb8f0bb498655b6a69b5a8cb801d0662
parent6e0be363cbff1f8e794a0aba13fdb0bfa03124a6
Allow opening activity to specify orientation.

An activity's window is initially not visible. This means it is not
accounted for until it becomes visible, which means requested
orientations will not be honored until after onCreate.

This changelist removes the visibility check previously used determining
the orientation.

This changelist also addresses an issue where an ActivityRecord member
variable tracking the last configuration sent was not being initially
updated.

Fixes: 33844887
Fixes: 33814250
Fixes: 34165818
Fixes: 34177026
Fixes: 33809086
Fixes: 34111451
Fixes: 33844423

Test: Verified reported issues fixed in apps mentioned in bugs
Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.ActivityManagerAppConfigurationTests
Change-Id: If9243792b9f2d137dc5addbf6fb735a0048fa192
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/WindowContainer.java
services/tests/servicestests/src/com/android/server/wm/WindowContainerTests.java