MainActivity: do not switch logbook on reload

This commit is contained in:
2025-12-12 15:00:10 +01:00
parent 01907d7c4e
commit 8c2fcaaef5

View File

@@ -108,9 +108,13 @@ class MainActivity : AppCompatActivity() {
loadLogbookList()
}
findViewById<View>(R.id.button_sync).setOnClickListener {
if (logbook != null) {
loadLogbook(logbook!!.name)
} else {
loadLogbookList()
}
}
}
private fun setListAdapter(items: ArrayList<LunaEvent>) {
val adapter = LunaEventRecyclerAdapter(this, items)