Merge "Let non-fill-screen app window control nav bar appearance" into udc-dev

This commit is contained in:
Treehugger Robot
2023-05-10 20:30:22 +00:00
committed by Android (Google) Code Review

View File

@@ -1530,6 +1530,11 @@ public class DisplayPolicy {
if (isOverlappingWithNavBar(win) && mNavBarColorWindowCandidate == null) {
mNavBarColorWindowCandidate = win;
}
} else if (appWindow && attached == null && mNavBarColorWindowCandidate == null
&& win.getFrame().contains(
getBarContentFrameForWindow(win, Type.navigationBars()))) {
mNavBarColorWindowCandidate = win;
addSystemBarColorApp(win);
}
}