mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
This commit is contained in:
parent
5eb2bc6d55
commit
e458d8b6a1
@ -58,7 +58,12 @@ class SelectBookmarkFolderAdapter(private val sharedViewModel: BookmarksSharedVi
|
|||||||
tree[position].node == sharedViewModel.selectedFolder,
|
tree[position].node == sharedViewModel.selectedFolder,
|
||||||
object : SelectionInterface {
|
object : SelectionInterface {
|
||||||
override fun itemSelected(node: BookmarkNode) {
|
override fun itemSelected(node: BookmarkNode) {
|
||||||
sharedViewModel.selectedFolder = node
|
sharedViewModel.apply {
|
||||||
|
when (selectedFolder) {
|
||||||
|
node -> selectedFolder = null
|
||||||
|
else -> selectedFolder = node
|
||||||
|
}
|
||||||
|
}
|
||||||
notifyDataSetChanged()
|
notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user