kopia lustrzana https://github.com/rt-bishop/Look4Sat
Fixed satellite selection clearing bug #46
rodzic
bf1ce64553
commit
271719c651
|
@ -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?) {
|
||||
|
|
Ładowanie…
Reference in New Issue