aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/XmppActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-19 15:05:01 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-19 15:05:01 +0100
commit389d4db311f22ceb787976a6c6130bb0260610bb (patch)
tree47d75d3086256806430ffabd5be3e2181d634779 /src/eu/siacs/conversations/ui/XmppActivity.java
parent3a98a695d4c77cf879a76262b2d370d79e8b4fdb (diff)
rename in muc fixed
Diffstat (limited to 'src/eu/siacs/conversations/ui/XmppActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/XmppActivity.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/ui/XmppActivity.java b/src/eu/siacs/conversations/ui/XmppActivity.java
index dc8c3d5d..968e1647 100644
--- a/src/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/eu/siacs/conversations/ui/XmppActivity.java
@@ -43,13 +43,17 @@ public abstract class XmppActivity extends Activity {
protected void onStart() {
super.onStart();
if (!xmppConnectionServiceBound) {
- Intent intent = new Intent(this, XmppConnectionService.class);
- intent.setAction("ui");
- startService(intent);
- bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
+ connectToBackend();
}
}
+ public void connectToBackend() {
+ Intent intent = new Intent(this, XmppConnectionService.class);
+ intent.setAction("ui");
+ startService(intent);
+ bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
+ }
+
@Override
protected void onStop() {
super.onStop();