android
android copied to clipboard
Check Usage of previousSortGroupState
This would negate purpose of `previousSortGroupState`, which was introduced by #11965. If this choice was deliberate, check that *all* edge cases are handled appropriately and remove this variable entirely.
Originally posted by @ZetaTom in https://github.com/nextcloud/android/pull/12540#discussion_r1489207827
Handling visibility of Sort List Group with "Stack<Boolean> previousSortGroupState" not ideal. It caused crashed and wrong usage of showSortListGroup function. Crash has been fixed in this PR.
Things To Do
- Check usage of previousSortGroupState if its not necessary remove it.
- Decouple Sort List Group visibility from previousSortGroupState