You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checked on 5.1.0 version of library with android 6.0 (emulator)
I have single times exapandable items containing lists of not expandable sub items in FlexibleAdapter.
All items there are static once added they are not reordered during lifetime of FlexibleAdapter
Whenever user inputs filter into TextView filterInputTextWatcher.afterTextChanged is calling FlexibleAdapter.filter. All expandable filtered views are expanded (this is correct behavior), it is done automatically by library.
Then, I have a button which clears filter input. Whenever button is clicked filterInpt text is set to "" and TextWatcher.afterTextChanged is also called, so filter again occurs. It finishes with all closed restored views.
I need now to expand all expandable views to show sub items, but whenever i call Flexible.expandAll after filter is finished it is not working. I tried with delay to expand views (500 ms) but this either do not expand views (for some items they are expanded but not all ).
I also tried with FlexibleAdapter.OnFilterListener (with delay or without) but this does behave the same.
This seems like expand does work as, when i click on expandable item it is shown as expanded. but There are not subitems there so i need to collapse it and expand manually and then subitems are there agian
Calling FlexibleAdapter.collapseAll and then FlexibleAdapter.expandAll with delay workarounds the issue.
The text was updated successfully, but these errors were encountered:
FlexibleAdapter
TextView filterInput
TextWatcher.afterTextChanged
is callingFlexibleAdapter.filter
. All expandable filtered views are expanded (this is correct behavior), it is done automatically by library.filterInpt
text is set to""
andTextWatcher.afterTextChanged
is also called, so filter again occurs. It finishes with all closed restored views.Flexible.expandAll
after filter is finished it is not working. I tried with delay to expand views (500 ms) but this either do not expand views (for some items they are expanded but not all ).FlexibleAdapter.OnFilterListener
(with delay or without) but this does behave the same.FlexibleAdapter.collapseAll
and thenFlexibleAdapter.expandAll
with delay workarounds the issue.The text was updated successfully, but these errors were encountered: