summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2022-11-21 17:41:44 +0000
committer Michal Brzezinski <brzezinski@google.com> 2022-12-09 20:10:13 +0000
commit7e2733e270ead87cdbff1bdd1bc5ce1b8f052ac2 (patch)
tree1c8eba5d8551bc0e67d2b9647f117df9acf515bf /libs/androidfw/StringPool.cpp
parent0513b9e126d6effad26416b4dd2fe146f6eabb6a (diff)
Making sure shade doesn't open after unfolding when no security is set
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions