use auto register for verify otr listeners

This commit is contained in:
iNPUTmice 2014-11-11 17:42:09 +01:00
parent 76f4cf1a73
commit d1bf9a3f6d

View File

@ -164,7 +164,6 @@ public class VerifyOTRActivity extends XmppActivity implements XmppConnectionSer
if (handleIntent(getIntent())) {
updateView();
}
this.xmppConnectionService.setOnConversationListChangedListener(this);
}
protected void updateView() {
@ -273,14 +272,6 @@ public class VerifyOTRActivity extends XmppActivity implements XmppConnectionSer
}
}
@Override
protected void onStop() {
if (xmppConnectionServiceBound) {
xmppConnectionService.removeOnConversationListChangedListener();
}
super.onStop();
}
@Override
public void onConversationUpdate() {
runOnUiThread(new Runnable() {