forked from penguin86/luna-tracker
MainActivity: do not switch logbook on reload
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user