diff options
author | Daichi Hirono <hirono@google.com> | 2017-08-28 10:29:27 +0900 |
---|---|---|
committer | Daichi Hirono <hirono@google.com> | 2017-08-28 13:26:38 +0900 |
commit | b890523f4bd78e31919bf1c71e483461f11be139 (patch) | |
tree | a5afae00b84ff8a9ecca050d039315f2c0537967 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 6916aad0469fb6ab5e6a5621cd5dc5a4c3bd57c4 (diff) |
Check LayoutParam before clearing recycled state.
If header view / footer view is added to ListView before setting
adapter, the ListView regards the item count is zero even it has header
/ footer views.
Thus ListView invokes resetList(), and it invokes clearRecycledState() for
header / footer views. But in this method, there is no guarantee the
views has proper layout param.
The CL adds guard to check if the layout param is correct or not. If the
view does not have proepr layout param, it should do nothing because the
view has not been added to the ListView, and the LayoutParam will be
updated when ListView invokes obtainView for the view.
Bug: 65035699
Test: CTS ListViewTest
Change-Id: I4449d4bbcdba8e7cc10ec64d711f937a0f3375ca
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions