mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
show error toasts on ui thread
This commit is contained in:
parent
d2ca0c7fe8
commit
78e3afc1af
@ -1464,13 +1464,20 @@ public class ConversationActivity extends XmppActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(int errorCode, Message message) {
|
public void error(final int errorCode, Message message) {
|
||||||
replaceToast(getString(errorCode));
|
hidePrepareFileToast(prepareFileToast);
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
replaceToast(getString(errorCode));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void userInputRequried(PendingIntent pi, Message message) {
|
public void userInputRequried(PendingIntent pi, Message message) {
|
||||||
|
hidePrepareFileToast(prepareFileToast);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1496,8 +1503,14 @@ public class ConversationActivity extends XmppActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(int error, Message message) {
|
public void error(final int error, Message message) {
|
||||||
replaceToast(getString(error));
|
hidePrepareFileToast(prepareFileToast);
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
replaceToast(getString(error));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user