summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/shade/ShadeControllerImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Making sure QS are not closed when split shade is openMichal Brzezinski2023-02-171-2/+0
| | | | | | | | | | | 1. Checking that we can actually close QS, that is we're really closing shade 2. Logging when we're forcing closing QS in split shade 3. Removing unnecessary call to closeQS from ShadeControllerImpl - "collapsePanel" already tries closing QS anyway Fixes: 264558771 Bug: 219589379 Test: In full screen app try swiping split shade up and when it disappears - without lifting finger from screen - swipe quickly down Change-Id: Icc6899018e0815e4729bcefd02163a5a9cfec022
* Making sure shade doesn't open after unfolding when no security is setMichal Brzezinski2022-12-091-3/+2
| | | | | | | | | | | Shade was opening because `mKeyguardStateController.isShowing()` is false when screen is off but no security set. I changed the logic of isShadeOpen to actually say if shade is open instead of being always true on keyguard and made small fixes to the logic in CentralSurfaces. We want to keep shade open only when we're in unlocked (SHADE) state. Added isShadeOpen method to NPVC - it should be helpful for other use cases and might be less confusing to use than isFullyExpanded. Fixes: 259012717 Test: manual -> set security to none -> turn screen off in folded mode -> unfold -> see launcher instead of shade Test: NotificationPanelViewControllerTest Change-Id: I5c1ce04fac5e549a49a53bd409c6e198483b4647
* Remove more methods from CentralSurfacesJustin Weir2022-11-291-0/+23
| | | | | | | Bug: 257041702 Bug: 249277686 Test: atest and manual Change-Id: I1e3626ad8dc827c8ceffcb9a555460e79ff422b7
* Remove CentralSurfaces from ShadeControllerJustin Weir2022-11-291-64/+168
| | | | | | | | | | | | | The methods ShadeController was calling in CentralSurfaces are now in ShadeController. A small amount of interaction between the two classes had to remain, but it's now a small interface instead of a direct dependency on CentralSurfaces. This work is far from done, but the dependency was removed and atest passed, so it seemed like a good place to stop and review. Bug: 249277686 Test: manual and atest Change-Id: Ide5c6f1964a83073f39323c083ea1ccc281bc8fe
* Removed calls to NPVC.getView()Shawn Lee2022-11-141-1/+1
| | | | | | | | | Got rid of most NPVC.getView calls except for the ones in FoldAodAnimationController, to get closer to deleting it entirely. Bug: 254878364 Test: existing tests Change-Id: If8070d9ec766e7116178febd23cb3f9910d5affb
* Begin decoupling CentralSurfaces and NPVCJustin Weir2022-11-011-1/+1
| | | | | | | | | | Removed 6 methods from the CentralSurfaces API that were either redundant or merely passthroughs to NPVC. Fixes: 254875405 Bug: 249277686 Test: atest and manual Change-Id: Ie76c44d6dd290eab44a58937326ff075608cb927
* Move ShadeController to the shade packageJustin Weir2022-07-271-0/+229
Bug: 238333941 Test: atest SystemUITests SystemUIGoogleTests Change-Id: Ibf332e4f8ca6af7ed22655cd5669ab36e9a41fbe