OSDN Git Service

Ensure feature flags are set prior to checking Activity Transition.
authorGeorge Mount <mount@google.com>
Wed, 9 Sep 2015 19:45:55 +0000 (12:45 -0700)
committerGeorge Mount <mount@google.com>
Wed, 9 Sep 2015 19:45:55 +0000 (12:45 -0700)
commit52d77f2429685978923eb63ac9c0ec938f928243
treee50564a2fd8e1a4703e5fe7df0e7e5a3c7864ff6
parent2fd54a451c13ce65bd2639b0bd9397881371b5c5
Ensure feature flags are set prior to checking Activity Transition.

Bug 23764120

Window features are set in PhoneWindow.installDecor. The Activity
Transition feature is checked after onCreate. If the developer
hasn't accessed the decor View in onCreate, the Activity Transition
feature will not have been set prior to checking it. To correct
this, the decor View will be forced to be created prior to
checking the Activity Transition feature state.

Change-Id: I2c756b6736ae7f3a346f4f9bcef6936371ff03c5
core/java/android/app/ActivityTransitionState.java