Feature collection #19

Open
mwarning wants to merge 24 commits from mwarning/luna-tracker:bottle_time into master
33 changed files with 1699 additions and 577 deletions
Showing only changes of commit 672ae37049 - Show all commits

View File

@@ -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)