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
2021-02-19 19:01:38 +00:00
committed by Android (Google) Code Review
5 changed files with 38 additions and 11 deletions

View File

@@ -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);