Fixed satellite selection clearing bug #46

This commit is contained in:
Arty Bishop committed 2021-02-26 18:39:11 +00:00
1 parent bf1ce64553
commit 271719c651
1 file changed
+7 -2
@@ -133,8 +133,13 @@ class EntriesFragment : Fragment(R.layout.fragment_entries) {
private fun navigateToPasses() {
binding?.searchBar?.clearFocus()
entriesAdapter?.let { viewModel.updateEntriesSelection(it.getEntries()) }
requireView().findNavController().navigate(R.id.action_entries_to_passes)
entriesAdapter?.let {
val entries = it.getEntries()
if (entries.isNotEmpty()) {
viewModel.updateEntriesSelection(entries)
requireView().findNavController().navigate(R.id.action_entries_to_passes)
}
}
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {