From 0e7b6e534c1a818d1539e12d2febe2d26b7fa026 Mon Sep 17 00:00:00 2001 From: Jordan Demeulenaere Date: Wed, 11 Jan 2023 13:03:25 +0100 Subject: [PATCH] Use the correct FGS View when animating into a dialog This CL fixes the View that is used when showing the Foreground Services dialog. Test: Click the FGS button when the Security button is also shown. Bug: 264728445 Change-Id: Id686279bbfc1e47e28da894342688d44183ebf42 --- .../systemui/qs/footer/ui/binder/FooterActionsViewBinder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/footer/ui/binder/FooterActionsViewBinder.kt b/packages/SystemUI/src/com/android/systemui/qs/footer/ui/binder/FooterActionsViewBinder.kt index 30f81243e8d01..19215867e6789 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/footer/ui/binder/FooterActionsViewBinder.kt +++ b/packages/SystemUI/src/com/android/systemui/qs/footer/ui/binder/FooterActionsViewBinder.kt @@ -219,9 +219,9 @@ object FooterActionsViewBinder { // Small button with the number only. foregroundServicesWithTextView.isVisible = false - foregroundServicesWithNumberView.visibility = View.VISIBLE + foregroundServicesWithNumberView.isVisible = true foregroundServicesWithNumberView.setOnClickListener { - foregroundServices.onClick(Expandable.fromView(foregroundServicesWithTextView)) + foregroundServices.onClick(Expandable.fromView(foregroundServicesWithNumberView)) } foregroundServicesWithNumberHolder.number.text = foregroundServicesCount.toString() foregroundServicesWithNumberHolder.number.contentDescription = foregroundServices.text