mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/1496: Crash adding bookmark folder
This commit is contained in:
parent
f303148671
commit
b6e8c47065
@ -59,13 +59,18 @@ class AddBookmarkFolderFragment : Fragment(), CoroutineScope {
|
|||||||
launch(IO) {
|
launch(IO) {
|
||||||
sharedViewModel.selectedFolder = sharedViewModel.selectedFolder
|
sharedViewModel.selectedFolder = sharedViewModel.selectedFolder
|
||||||
?: requireComponents.core.bookmarksStorage.getTree(BookmarkRoot.Mobile.id)
|
?: requireComponents.core.bookmarksStorage.getTree(BookmarkRoot.Mobile.id)
|
||||||
bookmark_add_folder_parent_selector.text = sharedViewModel.selectedFolder!!.title
|
launch(Main) {
|
||||||
bookmark_add_folder_parent_selector.setOnClickListener {
|
bookmark_add_folder_parent_selector.text = sharedViewModel.selectedFolder!!.title
|
||||||
Navigation.findNavController(requireActivity(), R.id.container)
|
bookmark_add_folder_parent_selector.setOnClickListener {
|
||||||
.navigate(
|
Navigation.findNavController(requireActivity(), R.id.container)
|
||||||
AddBookmarkFolderFragmentDirections
|
.navigate(
|
||||||
.actionBookmarkAddFolderFragmentToBookmarkSelectFolderFragment(BookmarkRoot.Root.id, true)
|
AddBookmarkFolderFragmentDirections
|
||||||
)
|
.actionBookmarkAddFolderFragmentToBookmarkSelectFolderFragment(
|
||||||
|
BookmarkRoot.Root.id,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user