Skip to content

Commit

Permalink
Clicking a parent space should switch to it even if already selected
Browse files Browse the repository at this point in the history
Change-Id: Ic7066e17a1c649a1c7a0384bbb247cc30b13e590
  • Loading branch information
SpiritCroc committed Jan 16, 2024
1 parent 6026884 commit a684ea3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ private fun SpacesPager(
if (selectedSpaceIndex == index) {
if (expandSpaceChildren) {
expandSpaceChildren = false
// In case we selected a child, need to re-select this space
if (childSelections.isNotEmpty()) {
selectSpace(spacesList[index], parentSelection)
}
} else if (space.spaces.isNotEmpty()) {
expandSpaceChildren = true
}
Expand Down

0 comments on commit a684ea3

Please sign in to comment.