stop service on log out when UI is not active

(cherry picked from commit 2dd8896dc2516eb22b09de432d24922e7a5fab12)
This commit is contained in:
Daniel Gultsch 2023-10-19 08:52:25 +02:00 committed by Arne
parent 865a094099
commit c8da1d82b8

View file

@ -1032,6 +1032,9 @@ public class XmppConnectionService extends Service {
return START_STICKY;
case ACTION_TEMPORARILY_DISABLE:
toggleSoftDisabled(true);
if (checkListeners()) {
stopSelf();
}
return START_NOT_STICKY;
}
manageAccountConnectionStates(action, intent == null ? null : intent.getExtras());