MainActivity: do not switch logbook on reload

This commit is contained in:
2026-10-12 22:20:15 +02:00
committed by penguin86
parent 06180f95a8
commit cd523f8282
@@ -108,9 +108,13 @@ class MainActivity : AppCompatActivity() {
loadLogbookList() loadLogbookList()
} }
findViewById<View>(R.id.button_sync).setOnClickListener { findViewById<View>(R.id.button_sync).setOnClickListener {
if (logbook != null) {
loadLogbook(logbook!!.name)
} else {
loadLogbookList() loadLogbookList()
} }
} }
}
private fun setListAdapter(items: ArrayList<LunaEvent>) { private fun setListAdapter(items: ArrayList<LunaEvent>) {
val adapter = LunaEventRecyclerAdapter(this, items) val adapter = LunaEventRecyclerAdapter(this, items)