Merge changes Id68b6c37,I16d39d3e into sc-dev

* changes:
  Fix a couple of crashes when taskbar isn't yet attached
  Subtract taskbar size from DeviceProfile#availableHeight
This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-02-19 19:01:38 +00:00
commit aa14b19725
5 files changed
+38 -11

No files matched your search

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