forked from penguin86/luna-tracker
refactor: use UPDATE_EVERY_SECS for regular update
Before, it was used to define the initial update. This change does not change the behavior.
This commit is contained in:
@@ -50,7 +50,7 @@ import java.util.Date
|
||||
class MainActivity : AppCompatActivity() {
|
||||
companion object {
|
||||
const val TAG = "MainActivity"
|
||||
const val UPDATE_EVERY_SECS: Long = 30
|
||||
const val UPDATE_EVERY_SECS: Long = 60
|
||||
const val DEBUG_CHECK_LOGBOOK_CONSISTENCY = false
|
||||
// list of all events
|
||||
var allEvents = arrayListOf<LunaEvent>()
|
||||
@@ -69,7 +69,7 @@ class MainActivity : AppCompatActivity() {
|
||||
val updateListRunnable: Runnable = Runnable {
|
||||
if (logbook != null && !pauseLogbookUpdate)
|
||||
loadLogbook(logbook!!.name)
|
||||
handler.postDelayed(updateListRunnable, 1000 * 60)
|
||||
handler.postDelayed(updateListRunnable, 1000 * 30)
|
||||
}
|
||||
var logbookRepo: LogbookRepository? = null
|
||||
var showingOverflowPopupWindow = false
|
||||
|
||||
Reference in New Issue
Block a user