Compare commits
No commits in common. "524a121149c65e7deeaf5a238f2f5520c3327a68" and "b02a6c9aadad2a705ca92b813b29664eafd98110" have entirely different histories.
524a121149
...
b02a6c9aad
@ -30,6 +30,7 @@ import it.danieleverducci.lunatracker.repository.WebDAVLogbookRepository
|
|||||||
import kotlinx.coroutines.Runnable
|
import kotlinx.coroutines.Runnable
|
||||||
import okio.IOException
|
import okio.IOException
|
||||||
import org.json.JSONException
|
import org.json.JSONException
|
||||||
|
import utils.DateUtils
|
||||||
import utils.NumericUtils
|
import utils.NumericUtils
|
||||||
import java.text.DateFormat
|
import java.text.DateFormat
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
@ -38,7 +39,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
companion object {
|
companion object {
|
||||||
val TAG = "MainActivity"
|
val TAG = "MainActivity"
|
||||||
val UPDATE_EVERY_SECS: Long = 30
|
val UPDATE_EVERY_SECS: Long = 30
|
||||||
val DEBUG_CHECK_LOGBOOK_CONSISTENCY = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lateinit var logbook: Logbook
|
lateinit var logbook: Logbook
|
||||||
@ -53,7 +53,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
handler.postDelayed(updateListRunnable, 1000*60)
|
handler.postDelayed(updateListRunnable, 1000*60)
|
||||||
}
|
}
|
||||||
var logbookRepo: LogbookRepository? = null
|
var logbookRepo: LogbookRepository? = null
|
||||||
var showingOverflowPopupWindow = false
|
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
@ -296,15 +295,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
findViewById<View>(R.id.no_connection_screen).visibility = View.GONE
|
findViewById<View>(R.id.no_connection_screen).visibility = View.GONE
|
||||||
logbook = lb
|
logbook = lb
|
||||||
showLogbook()
|
showLogbook()
|
||||||
|
|
||||||
if (DEBUG_CHECK_LOGBOOK_CONSISTENCY) {
|
|
||||||
for (e in logbook.logs) {
|
|
||||||
val em = e.getTypeEmoji(this@MainActivity)
|
|
||||||
if (em == getString(R.string.event_unknown_type)) {
|
|
||||||
Log.e(TAG, "UNKNOWN: ${e.type}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,9 +457,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun showOverflowPopupWindow(anchor: View) {
|
private fun showOverflowPopupWindow(anchor: View) {
|
||||||
if (showingOverflowPopupWindow)
|
|
||||||
return
|
|
||||||
|
|
||||||
PopupWindow(anchor.context).apply {
|
PopupWindow(anchor.context).apply {
|
||||||
isOutsideTouchable = true
|
isOutsideTouchable = true
|
||||||
val inflater = LayoutInflater.from(anchor.context)
|
val inflater = LayoutInflater.from(anchor.context)
|
||||||
@ -491,13 +478,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
dismiss()
|
dismiss()
|
||||||
})
|
})
|
||||||
}.also { popupWindow ->
|
}.also { popupWindow ->
|
||||||
popupWindow.setOnDismissListener({
|
|
||||||
Handler(mainLooper).postDelayed({
|
|
||||||
showingOverflowPopupWindow = false
|
|
||||||
}, 500)
|
|
||||||
})
|
|
||||||
popupWindow.showAsDropDown(anchor)
|
popupWindow.showAsDropDown(anchor)
|
||||||
showingOverflowPopupWindow = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
LunaTracker is a newborn baby tracking app.
|
||||||
|
|
||||||
Parenting can be tough. You get home from the hospital, exhausted, with this little fragile unknown thingy that has no user manual and a single way to let you know something's not ok: crying.
|
Parenting can be tough. You get home from the hospital, exhausted, with this little fragile unknown thingy that has no user manual and a single way to let you know something's not ok: crying.
|
||||||
You have to react fast, event if it's 4 AM and you have no idea why is crying.
|
You have to react fast, event if it's 4 AM and you have no idea why is crying.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
LunaTracker è un'app di tracciamento neonatale
|
||||||
|
|
||||||
Essere genitori può essere dura. Arrivate a casa dall'ospedale, esausti, con questo cosino fragile e sconosciuto che non ha un manuale d'uso, e ha un solo modo per segnalare che c'è qualcosa che non va: piangere.
|
Essere genitori può essere dura. Arrivate a casa dall'ospedale, esausti, con questo cosino fragile e sconosciuto che non ha un manuale d'uso, e ha un solo modo per segnalare che c'è qualcosa che non va: piangere.
|
||||||
Dovete essere sempre pronti a reagire, anche se sono le 4 di mattina e non avete idea del perché stia piangendo.
|
Dovete essere sempre pronti a reagire, anche se sono le 4 di mattina e non avete idea del perché stia piangendo.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user