Fix not showing system bars in split screen
Update force showing system bars rule to compatable with single-top
split root task hierarchy.
Fix: 231700877
Test: put Photos in split screen, tap on any photo to hide took bar
won't hide system bars.
Test: atest DisplayPolicyTests
Change-Id: I219057c32e0baa934189ed6736af951793b239ec
This commit is contained in:
@@ -2404,7 +2404,9 @@ public class DisplayPolicy {
|
||||
private int updateSystemBarsLw(WindowState win, int disableFlags) {
|
||||
final TaskDisplayArea defaultTaskDisplayArea = mDisplayContent.getDefaultTaskDisplayArea();
|
||||
final boolean multiWindowTaskVisible =
|
||||
defaultTaskDisplayArea.isRootTaskVisible(WINDOWING_MODE_MULTI_WINDOW);
|
||||
defaultTaskDisplayArea.getRootTask(task -> task.isVisible()
|
||||
&& task.getTopLeafTask().getWindowingMode() == WINDOWING_MODE_MULTI_WINDOW)
|
||||
!= null;
|
||||
final boolean freeformRootTaskVisible =
|
||||
defaultTaskDisplayArea.isRootTaskVisible(WINDOWING_MODE_FREEFORM);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user