Check for isTaskbarPresent in addition to isTransientTaskbar

when the method is called outside of taskbar.

This prevents the case where phone runs transient taskbar logic.

Bug: 260006210
Test: added local logs, tested in phone mode
Change-Id: I600c06d6c797bd68461ac033dcc2c6158f221024
This commit is contained in:
Jon Miranda
2022-11-22 15:56:12 -08:00
parent 691c6e511f
commit 807823155d
3 changed files with 50 additions and 63 deletions

View File

@@ -1632,7 +1632,7 @@ public class TaskView extends FrameLayout implements Reusable {
*/
private static RectF getInsetsToDrawInFullscreen(PreviewPositionHelper pph,
DeviceProfile dp, boolean isTaskbarTransient) {
if (isTaskbarTransient) {
if (dp.isTaskbarPresent && isTaskbarTransient) {
return pph.getClippedInsets();
}
return dp.isTaskbarPresent && !dp.isTaskbarPresentInApps