~singpolyma/cheogram-android

5490e98b146c1f19ca1b242df3fc60d059b3ba60 — Daniel Gultsch 5 years ago 5ca35fd
use toastcompat library to catch BadTokenException in attempt to fix #3279
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java
M src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java => src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java +2 -1
@@ 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();
        });
    }