From 5490e98b146c1f19ca1b242df3fc60d059b3ba60 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 20 Nov 2018 17:17:14 +0100 Subject: [PATCH] use toastcompat library to catch BadTokenException in attempt to fix #3279 --- .../eu/siacs/conversations/ui/ConferenceDetailsActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java index 71ba683c7..8d2efff0b 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java @@ -66,6 +66,7 @@ import eu.siacs.conversations.utils.StringUtils; import eu.siacs.conversations.utils.StylingHelper; import eu.siacs.conversations.utils.UIHelper; import eu.siacs.conversations.utils.XmppUri; +import me.drakeet.support.toast.ToastCompat; import rocks.xmpp.addr.Jid; import static eu.siacs.conversations.entities.Bookmark.printableValue; @@ -701,7 +702,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers if (isFinishing()) { return; } - Toast.makeText(ConferenceDetailsActivity.this, msg, Toast.LENGTH_SHORT).show(); + ToastCompat.makeText(this, msg, Toast.LENGTH_SHORT).show(); }); }