aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-12 21:02:53 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-12 21:02:53 +0200
commit73f5a097dd4de8291aad7a312c78719f91bbbef5 (patch)
tree58c23146bd9f6615721c6637eac75f073c81a318 /src/main/java/de/pixart/messenger/ui
parentb1330d0f1d89a5cdd222892e508bfdf587b8e354 (diff)
sync roster to disk after roster push
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index 2c8d72aa0..109e0fe5f 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -873,7 +873,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
}
private void hidePrepareFileToast(final Toast prepareFileToast) {
- if (prepareFileToast != null) {
+ if (prepareFileToast != null && activity != null) {
activity.runOnUiThread(prepareFileToast::cancel);
}
}