run account deletion callback on ui thread
This commit is contained in:
parent
fb75d4cf28
commit
f6c9df00de
|
@ -317,6 +317,7 @@ public abstract class XmppActivity extends ActionBarActivity {
|
|||
button.setText(R.string.please_wait);
|
||||
button.setEnabled(false);
|
||||
xmppConnectionService.unregisterAccount(account, result -> {
|
||||
runOnUiThread(()->{
|
||||
if (result) {
|
||||
dialog.dismiss();
|
||||
if (postDelete != null) {
|
||||
|
@ -334,6 +335,7 @@ public abstract class XmppActivity extends ActionBarActivity {
|
|||
Toast.makeText(this,R.string.could_not_delete_account_from_server,Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
Toast.makeText(this,R.string.not_connected_try_again,Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue