forked from mirror/monocles_chat
stop service on log out when UI is not active
(cherry picked from commit 2dd8896dc2516eb22b09de432d24922e7a5fab12)
This commit is contained in:
parent
865a094099
commit
c8da1d82b8
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue