mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/3365 - Set selectedFolder to null if it's already selected (https://github.com/mozilla-mobile/fenix/pull/3415)
This commit is contained in:
parent
4d9bde3f2d
commit
20cd0da3bf
@ -58,7 +58,12 @@ class SelectBookmarkFolderAdapter(private val sharedViewModel: BookmarksSharedVi
|
||||
tree[position].node == sharedViewModel.selectedFolder,
|
||||
object : SelectionInterface {
|
||||
override fun itemSelected(node: BookmarkNode) {
|
||||
sharedViewModel.selectedFolder = node
|
||||
sharedViewModel.apply {
|
||||
when (selectedFolder) {
|
||||
node -> selectedFolder = null
|
||||
else -> selectedFolder = node
|
||||
}
|
||||
}
|
||||
notifyDataSetChanged()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user