From d5895d42a3a8a03f7998f664a17d3579803aeddc Mon Sep 17 00:00:00 2001 From: Alejandro Nijamkin Date: Mon, 10 Oct 2022 10:00:31 -0700 Subject: [PATCH] Bottom area buttons are LaunchableView This is needed to make sure that the visibility of the views stays consistent throughout the transition animation that ensues when the views are clicked by the user to open an activity or dialog. The next step is to actually add support for LaunchableView in ActivityLaunchAnimator like we did for DialogLaunchAnimator. Bug: 249986783 Test: clicked on the buttons, the animations still work, the linked bug is still present (it's expected to be fixed when we add support in ActivityLaunchAnimator) Change-Id: I2e846545cb1f268fc007309cde7a4dea95bd408c --- .../res/layout/keyguard_bottom_area.xml | 4 +- .../common/ui/view/LaunchableImageView.kt | 60 +++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 packages/SystemUI/src/com/android/systemui/common/ui/view/LaunchableImageView.kt diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml index 8df8c49ee057b..6120863f23ab3 100644 --- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml +++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml @@ -59,7 +59,7 @@ - -