aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/ConversationActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-28 12:22:09 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-28 12:22:09 +0100
commit0b235171a82d41a00dda5e5f64ff73ffb24f4d10 (patch)
treee9daf0a43ae33e9a43219c5b72b7f181c0aeb4a7 /src/eu/siacs/conversations/ui/ConversationActivity.java
parent9fa95f50ae2dca51308245038a1d50b3ab8a09bd (diff)
tryping to fix #24 - notificationgate - since i still cant reproduce this patches are all blind
Diffstat (limited to 'src/eu/siacs/conversations/ui/ConversationActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java
index 45a3376a5..5bb8113a1 100644
--- a/src/eu/siacs/conversations/ui/ConversationActivity.java
+++ b/src/eu/siacs/conversations/ui/ConversationActivity.java
@@ -394,11 +394,14 @@ public class ConversationActivity extends XmppActivity {
return super.onKeyDown(keyCode, event);
}
+ @Override
public void onStart() {
super.onStart();
- this.registerListener();
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
this.useSubject = preferences.getBoolean("use_subject_in_muc", true);
+ if (this.xmppConnectionServiceBound) {
+ this.onBackendConnected();
+ }
if (conversationList.size()>=1) {
onConvChanged.onConversationListChanged();
}
@@ -406,7 +409,6 @@ public class ConversationActivity extends XmppActivity {
@Override
protected void onStop() {
- Log.d("gultsch","called on stop in conversation activity");
if (xmppConnectionServiceBound) {
xmppConnectionService.removeOnConversationListChangedListener();
}