use toastcompat library to catch BadTokenException
This commit is contained in:
parent
5f15c12f53
commit
504715c215
3 changed files with 4 additions and 1 deletions
|
@ -81,6 +81,7 @@ dependencies {
|
|||
implementation 'org.hsluv:hsluv:0.2'
|
||||
implementation 'org.conscrypt:conscrypt-android:1.3.0'
|
||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
|
||||
implementation 'me.drakeet.support:toastcompat:1.1.0'
|
||||
}
|
||||
|
||||
ext {
|
||||
|
|
|
@ -67,6 +67,7 @@ import de.pixart.messenger.utils.StylingHelper;
|
|||
import de.pixart.messenger.utils.TimeframeUtils;
|
||||
import de.pixart.messenger.utils.UIHelper;
|
||||
import de.pixart.messenger.utils.XmppUri;
|
||||
import me.drakeet.support.toast.ToastCompat;
|
||||
import rocks.xmpp.addr.Jid;
|
||||
|
||||
import static de.pixart.messenger.entities.Bookmark.printableValue;
|
||||
|
@ -790,7 +791,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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
\n\nhttp://leafletjs.com/\n(BSD 2-Clause)
|
||||
\n\nhttps://www.openstreetmap.org/\n(Open Database License)
|
||||
\n\nhttp://xmpp.rocks/\n(The MIT License (MIT))
|
||||
\n\nhttps://github.com/drakeet/ToastCompat/\n(Apache License, Version 2.0)
|
||||
</string>
|
||||
|
||||
<string name="default_resource" translatable="false">Phone</string>
|
||||
|
|
Reference in a new issue