Subtract taskbar size from DeviceProfile#availableHeight

Normally availableHeight excludes system insets, but taskbar is added
after availableHeight is calculated. This discrepency causes some bad
calculations such as TaskView size.

Test: touch nav bar when in an app with taskbar present, ensure the
task doesn't jump due to incorrect calculation

Fixes: 179478728
Bug: 171917176
Change-Id: I16d39d3e1d9708e2a64c81b1ac24466f9567d1b9
This commit is contained in:
Tony Wickham committed 2021-02-18 11:39:10 -08:00
1 parent e1a8440d78
commit 15883891ea
5 files changed
+35 -5

No files matched your search

@@ -193,6 +193,10 @@ public class DisplayController implements DisplayListener {
: new Info(context, display);
}
public Context getDisplayContext() {
return mDisplayContext;
}
protected void handleOnChange() {
Info oldInfo = mInfo;
Info newInfo = createInfoForContext(mDisplayContext);