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
This commit is contained in:
Jordan Demeulenaere
2023-01-11 13:03:25 +01:00
parent 36993538df
commit 0e7b6e534c

View File

@@ -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