From 95de73e87308f7cf4f83427f3dc8979989950f1e 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 89f24ee8..111d7fae 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(); + } } };