Fix logging in OsmAnd-Telegram

This commit is contained in:
Alex Sytnyk 2018-08-06 18:38:28 +03:00
parent 28303d1c46
commit 7eead1e879

View file

@ -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)) {