Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcf5804e authored by Alex Shabalin's avatar Alex Shabalin
Browse files

Prevent making unnecessary requestDeviceSuggestion() calls.

This CL adds additional checks inside the scroll handler and triggers
panel's `onPanelFullyVisible` event when the panel becomes fully
visible and was not visible before.

To sum it up, make a `requestDeviceSuggestion()` call only when:
- The Media Controls carousel becomes visible.
- The card within the carousel becomes fully visible.

Fix: 434295012
Test: atest MediaCarouselControllerTest MediaCarouselScrollHandlerTest
Test: On a physical device
Flag: com.android.systemui.enable_suggested_device_ui
Change-Id: I49408eee27e0314b8b0260c935ee7444902b8c25
parent 109ce60c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment