use toastcompat library to catch BadTokenException in attempt to fix #3279

This commit is contained in:
Daniel Gultsch 2018-11-20 17:17:14 +01:00
parent 5ca35fda78
commit 5490e98b14
1 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ import eu.siacs.conversations.utils.StringUtils;
import eu.siacs.conversations.utils.StylingHelper; import eu.siacs.conversations.utils.StylingHelper;
import eu.siacs.conversations.utils.UIHelper; import eu.siacs.conversations.utils.UIHelper;
import eu.siacs.conversations.utils.XmppUri; import eu.siacs.conversations.utils.XmppUri;
import me.drakeet.support.toast.ToastCompat;
import rocks.xmpp.addr.Jid; import rocks.xmpp.addr.Jid;
import static eu.siacs.conversations.entities.Bookmark.printableValue; import static eu.siacs.conversations.entities.Bookmark.printableValue;
@ -701,7 +702,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
if (isFinishing()) { if (isFinishing()) {
return; return;
} }
Toast.makeText(ConferenceDetailsActivity.this, msg, Toast.LENGTH_SHORT).show(); ToastCompat.makeText(this, msg, Toast.LENGTH_SHORT).show();
}); });
} }