Fix live track auto update in UserGpxInfoFragment

(cherry picked from commit 1c4322ab0a)
This commit is contained in:
Chumva 2019-07-16 15:58:59 +03:00
parent a33be76618
commit 0e965dd796

View file

@ -232,6 +232,13 @@ class UserGpxInfoFragment : BaseDialogFragment() {
} }
} }
override fun onResume() {
super.onResume()
if (liveTrackEnabled()) {
startHandler()
}
}
private fun startHandler() { private fun startHandler() {
log.debug("startHandler") log.debug("startHandler")
if (!handler.hasMessages(TRACK_UPDATE_MSG_ID)) { if (!handler.hasMessages(TRACK_UPDATE_MSG_ID)) {