mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Fixed satellite selection clearing bug #46
This commit is contained in:
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?) {
|
||||
|
||||
Reference in new issue
Block a user