diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-11-11 00:16:43 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-11-11 00:16:43 +0100 |
commit | fce78abb1cf985ac02af1c997ff8871f47ce97af (patch) | |
tree | a74622e4ebf398116ad75b5e8a3a835f94030c45 /src/main/java/eu/siacs/conversations/ui | |
parent | c8a6b051639528f4e8e39ff09e4bda36e3191f10 (diff) |
temporarliy got rid of some insane work arounds in favor of some maybe less insane work arounds
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ConversationActivity.java | 9 | ||||
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/XmppActivity.java | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index c6ec63df6..8cb8a3aab 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -896,12 +896,11 @@ public class ConversationActivity extends XmppActivity implements public void run() { updateConversationList(); if (conversationList.size() == 0) { - startActivity(new Intent(getApplicationContext(), - StartConversationActivity.class)); - finish(); - } else { - ConversationActivity.this.mConversationFragment.updateMessages(); + startActivity(new Intent(getApplicationContext(), + StartConversationActivity.class)); + finish(); } + ConversationActivity.this.mConversationFragment.updateMessages(); } }); } diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java index 78d7956ae..2dafbd26d 100644 --- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java @@ -105,7 +105,11 @@ public abstract class XmppActivity extends Activity { XmppConnectionBinder binder = (XmppConnectionBinder) service; xmppConnectionService = binder.getService(); xmppConnectionServiceBound = true; - onBackendConnected(); + if (!isFinishing() && !isDestroyed()) { + onBackendConnected(); + } else { + Log.d(Config.LOGTAG,"omitting call to onBackendConnected()"); + } } @Override |