diff options
author | Robert Carr <racarr@google.com> | 2016-06-13 19:12:13 -0700 |
---|---|---|
committer | Robert Carr <racarr@google.com> | 2016-06-13 20:23:14 -0700 |
commit | cb8dcec66aa68e576bfd1520d1ad39a961f22c56 (patch) | |
tree | 26934aec11e92058846cd00aa69fe3c17c9bb733 /tools/aapt2/diff/Diff.cpp | |
parent | e4b1fb94e3e9686379c0b6159292cbb45dded821 (diff) |
PopupWindow: Resolve measure specs before passing to WM.
For the setClipToScreen case we need constraint to
the available display area, but not to the parent window.
If we don't pass FLAG_LAYOUT_NO_LIMITS, we will be constrained
to the parent window. However when we do pass it, we will
not be constrained to the system insets. So, we can pass
FLAG_LAYOUT_NO_LIMITS and constrain ourselves to the insets
via getWindowVisibleDisplayFrame. We also need to avoid
calling setWidth/Height with these resolved values
so we can preserve the indeterminate values in case
layout changes (e.g. rotation).
Bug: 29166136
Change-Id: I4c7c6204e6bc1cdcf4ad86f7e99e3511d4312ae4
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions