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

Skip to content
Commit 6d05b47d authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Fix bug with half-black screen when folding or waking with a SHOW_WHEN_LOCKED app in splitscreen

This CL partially rewrites the logic for checking if we have a SHOW_WHEN_LOCKED app when folding or waking up the device.

It dictates how splits are dismissed in two circumstances:
1) User sets Settings > Display & touch > Continue using apps on fold > Never.
2) User folds or sleeps the device when a SHOW_WHEN_LOCKED activity is focused and part of a split pair.

- Implements a new check for keyguard occlusion, and breaks split if keyguard would be occluded by an app
- Tracks the active task on device sleep (in addition to on fold), so that dismiss is carried out properly on sleep > wake without folding
- Renames a variable and adds comments for clarity.

Fixes: 330731643
Fixes: 349886679
Test: Manually verified with Calculator + other app in a variety of cases: focused, unfocused, split left, split right, etc.
Flag: EXEMPT bugfix
Change-Id: I6675dd248cc2a69d46fd259affad768684aa3f1d
parent 2cb43006
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