Use activity dimensions instead of display to calculate dialog size.
This adjusts the code for measuring and laying out dialog windows, which used display dimensions as a basis for calculating the dialog dimensions. Because of this dialogs would be too large in multi window mode, where the parent bounds are far smaller than full display. This switches to using dimensions for configuration received from activity manager. Mind, this is still not working as needed, because the resources return minimal size of the dialog as if it was displayed on a full display, rather than within activity bounds. The CL also introduces better logging tags in ViewRootImpl and DecorView. These normal approach works reasonably well when there is a single activity on the display. However, when multiple windows are displayed, it becomes impossible to determine which view root/decor view logged what. This adds a suffix, that allows to identify the owner. Bug: 26251921 Change-Id: I515a1ff9a81ee5ad086773196db71915e88a25eb
Loading
Please register or sign in to comment