use auto register for verify otr listeners
This commit is contained in:
parent
76f4cf1a73
commit
d1bf9a3f6d
|
@ -164,7 +164,6 @@ public class VerifyOTRActivity extends XmppActivity implements XmppConnectionSer
|
||||||
if (handleIntent(getIntent())) {
|
if (handleIntent(getIntent())) {
|
||||||
updateView();
|
updateView();
|
||||||
}
|
}
|
||||||
this.xmppConnectionService.setOnConversationListChangedListener(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void updateView() {
|
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
|
@Override
|
||||||
public void onConversationUpdate() {
|
public void onConversationUpdate() {
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
|
Loading…
Reference in a new issue