Skip to content
Commit bffcecfa authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Fixing broken shade after unfolding during expanding QS

The goal of this change is to transmit `QuickSettingsController#computeExpansionFraction() > 0` to CentralSurfacesImpl so in this case we can also close QS before turning screen off.
Now CentralSurfacesImpl checks for shade being fully open or shade being in process of opening/collapsing

In the meantime I noticed mIsExpanding really means mIsExpandingOrCollapsing and renamed it like so - that's why so many files are modified.
Also changed isExpanding() function to be more comprehensive and properly handle shade opening on lockscreen.

Fixes: 277909752
Test: NotificationPanelViewControllerTest#isExpandingOrCollapsing_returnsTrue_whenQsLockscreenDragInProgress
Test: CentralSurfacesImplTest#deviceStateChange_unfolded_shadeExpanding_onKeyguard_closesQS
Test: CentralSurfacesImplTest#deviceStateChange_unfolded_shadeExpanded_onKeyguard_closesQS
Change-Id: I22373e6aaf472a9df50c31fb38db26147b4d3d31
parent f6adbe0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment