Fix logging in OsmAnd-Telegram
This commit is contained in:
parent
28303d1c46
commit
7eead1e879
1 changed files with 5 additions and 4 deletions
|
@ -118,10 +118,6 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
telegramHelper.listener = this
|
|
||||||
if (!telegramHelper.isInit()) {
|
|
||||||
telegramHelper.init()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (osmandAidlHelper.isOsmandBound() && !osmandAidlHelper.isOsmandConnected()) {
|
if (osmandAidlHelper.isOsmandBound() && !osmandAidlHelper.isOsmandConnected()) {
|
||||||
osmandAidlHelper.connectOsmand()
|
osmandAidlHelper.connectOsmand()
|
||||||
|
@ -143,6 +139,11 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
|
||||||
super.onResume()
|
super.onResume()
|
||||||
paused = false
|
paused = false
|
||||||
|
|
||||||
|
telegramHelper.listener = this
|
||||||
|
if (!telegramHelper.isInit()) {
|
||||||
|
telegramHelper.init()
|
||||||
|
}
|
||||||
|
|
||||||
app.locationProvider.checkIfLastKnownLocationIsValid()
|
app.locationProvider.checkIfLastKnownLocationIsValid()
|
||||||
|
|
||||||
if (AndroidUtils.isLocationPermissionAvailable(this)) {
|
if (AndroidUtils.isLocationPermissionAvailable(this)) {
|
||||||
|
|
Loading…
Reference in a new issue