From bd467b6b9da3d79c5eae1093481351f849dd01a2 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 21 Aug 2014 07:38:44 +0200 Subject: deregister listener in editaccount --- src/eu/siacs/conversations/ui/EditAccountActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/eu/siacs/conversations/ui/EditAccountActivity.java b/src/eu/siacs/conversations/ui/EditAccountActivity.java index 774219d8..d278e927 100644 --- a/src/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/eu/siacs/conversations/ui/EditAccountActivity.java @@ -244,6 +244,14 @@ public class EditAccountActivity extends XmppActivity { } } } + + @Override + protected void onStop() { + if (xmppConnectionServiceBound) { + xmppConnectionService.removeOnAccountListChangedListener(); + } + super.onStop(); + } @Override protected void onBackendConnected() { -- cgit v1.2.3