Compare commits

..
1 Commits
Author SHA1 Message Date
mwarning 85a026e93a refactor: use UPDATE_EVERY_SECS for regular update
Before, it was used to define the initial update.
This change does not change the behavior.
2026-11-10 12:25:30 +01:00
2 changed files with 2 additions and 3 deletions
@@ -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
-1
View File
@@ -96,7 +96,6 @@ class NumericUtils (val context: Context) {
LunaEvent.Type.BABY_BOTTLE -> measurement_unit_liquid_base
LunaEvent.Type.WEIGHT -> measurement_unit_weight_base
LunaEvent.Type.HEIGHT -> measurement_unit_height_base
LunaEvent.Type.FOOD -> measurement_unit_weight_base
LunaEvent.Type.MEDICINE -> measurement_unit_weight_tiny
LunaEvent.Type.TEMPERATURE -> measurement_unit_temperature_base
else -> ""