diff options
author | Michael <betheg@bitcloner.org> | 2014-11-23 15:19:44 +0100 |
---|---|---|
committer | Michael <betheg@bitcloner.org> | 2014-11-23 15:19:44 +0100 |
commit | dbe8280662bbe90426931a465f767f2ff76f2cbc (patch) | |
tree | 9531aef704fe99d986284747dfb01e759dab8ab6 /src/main/java/eu/siacs/conversations/ui/XmppActivity.java | |
parent | bdfdc5fb1030b3ae49c43b8872476cae0ad89081 (diff) |
add an listener for the muc roster update.
this is for the ConferenceDetailsActivity to show
precence updates immediately.
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/XmppActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java index ddc57c2e8..5fba1664b 100644 --- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java @@ -241,6 +241,9 @@ public abstract class XmppActivity extends Activity { if (this instanceof XmppConnectionService.OnRosterUpdate) { this.xmppConnectionService.setOnRosterUpdateListener((XmppConnectionService.OnRosterUpdate) this); } + if (this instanceof XmppConnectionService.OnMucRosterUpdate) { + this.xmppConnectionService.setOnMucRosterUpdateListener((XmppConnectionService.OnMucRosterUpdate) this); + } } protected void unregisterListeners() { @@ -253,6 +256,9 @@ public abstract class XmppActivity extends Activity { if (this instanceof XmppConnectionService.OnRosterUpdate) { this.xmppConnectionService.removeOnRosterUpdateListener(); } + if (this instanceof XmppConnectionService.OnMucRosterUpdate) { + this.xmppConnectionService.removeOnMucRosterUpdateListener(); + } } public boolean onOptionsItemSelected(MenuItem item) { |