Fix logout disabling services
This commit is contained in:
parent
c3831b1600
commit
8864917676
1 changed files with 3 additions and 1 deletions
|
@ -356,7 +356,9 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
|
||||||
}
|
}
|
||||||
|
|
||||||
fun logoutTelegram(silent: Boolean = false) {
|
fun logoutTelegram(silent: Boolean = false) {
|
||||||
if (telegramHelper.getTelegramAuthorizationState() == TelegramHelper.TelegramAuthorizationState.READY) {
|
if (telegramHelper.getTelegramAuthorizationState() == TelegramAuthorizationState.READY) {
|
||||||
|
app.stopMonitoring()
|
||||||
|
app.stopSharingLocation()
|
||||||
if (app.isInternetConnectionAvailable) {
|
if (app.isInternetConnectionAvailable) {
|
||||||
app.locationMessages.clearBufferedMessages()
|
app.locationMessages.clearBufferedMessages()
|
||||||
settings.clear()
|
settings.clear()
|
||||||
|
|
Loading…
Reference in a new issue