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()) {
|
||||
osmandAidlHelper.connectOsmand()
|
||||
|
@ -143,6 +139,11 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
|
|||
super.onResume()
|
||||
paused = false
|
||||
|
||||
telegramHelper.listener = this
|
||||
if (!telegramHelper.isInit()) {
|
||||
telegramHelper.init()
|
||||
}
|
||||
|
||||
app.locationProvider.checkIfLastKnownLocationIsValid()
|
||||
|
||||
if (AndroidUtils.isLocationPermissionAvailable(this)) {
|
||||
|
|
Loading…
Reference in a new issue