commit | 3e857ec536f54fc08ab59bedcd878a819ebd71c3 | [log] [tgz] |
---|---|---|
author | Charles Chen <charlesccchen@google.com> | Wed Feb 05 16:33:40 2020 +0800 |
committer | Charles Chen <charlesccchen@google.com> | Wed Feb 12 11:09:25 2020 +0800 |
tree | 9f63c96f64bbc86d591374f239a39a0bcf0cf37e | |
parent | 848b6d4441d7b1444b0410e68b949d9236fb5099 [diff] |
Always get window insets from server The previous implementation of computeWindowInsets is to use last view from WM#addView, which may be invalid because the last added view is removed and throws NPE when getting property from the invalid view. In this CL, we change the approach to always obtain window insets from server. fixes: 148789183 Test: atest FrameworksCoreTests:WindowMetricsTest Test: atest WindowMetricsTests Change-Id: Ic5512c31f86c597d99e13d29df654d3f527d6b55