aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-23 14:35:53 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-23 14:36:04 +0100
commit504715c215605552d5e7771550bc21cc35b1af5d (patch)
tree793d9e5592d6eafbca203d9a7727438ef454f29b /src/main
parent5f15c12f533c4a7b1b5a808516598adf518ec504 (diff)
use toastcompat library to catch BadTokenException
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java3
-rw-r--r--src/main/res/values/defaults.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
index c7f35f3b8..7f9e971d3 100644
--- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
@@ -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();
});
}
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml
index 7c0072f86..e8ef0805e 100644
--- a/src/main/res/values/defaults.xml
+++ b/src/main/res/values/defaults.xml
@@ -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>