From 16bb011f6a33863efdd8ae52204246cd77d4caf3 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Tue, 16 Jul 2019 19:27:26 +0200 Subject: [PATCH] fix glide crash in MainActivity (again) (#1394) --- app/src/main/java/com/keylesspalace/tusky/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java index 89f24ee83..111d7fae4 100644 --- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.java @@ -123,7 +123,9 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut private final EmojiCompat.InitCallback emojiInitCallback = new EmojiCompat.InitCallback() { @Override public void onInitialized() { - updateProfiles(); + if(!isDestroyed()) { + updateProfiles(); + } } };