OSDN Git Service

Fix Global Actions animations, and use old power menu when panel is disabled.
authorAaron Heuckroth <nesciosquid@google.com>
Tue, 2 Apr 2019 18:21:57 +0000 (14:21 -0400)
committerAaron Heuckroth <nesciosquid@google.com>
Wed, 3 Apr 2019 20:33:55 +0000 (16:33 -0400)
commitc7926618407a92a4ed9a502e40f243dfa62d8847
tree8647a8db192b784277e19e0b9cb4c9d7386f9e29
parent4ef3a5444f8623d638ded4e28f7afd9a0120f116
Fix Global Actions animations, and use old power menu when panel is disabled.
Also tweak feature flags setup to use old flag as a force option for debugging.

Test: Automated tests pass. Long-press power menu without plugin installed from different device orientations -- menu should animate in from the closest screen edge in all orientations and rotate correctly when device is rotated. Repeat after enabling the settings_global_actions_force_grid_enabled option in Feature Flags to ensure the correct behavior persists when using the new grid layout.

Fixes: 126444760
Fixes: 129698948

Change-Id: I9ac387244a5904f832c5d8b6c40362c00c6a22a2
core/java/android/util/FeatureFlagUtils.java
packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java
packages/SystemUI/src/com/android/systemui/MultiListLayout.java
packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsGridLayout.java
packages/SystemUI/src/com/android/systemui/globalactions/ListGridLayout.java