fix glide crash in MainActivity (again) (#1394)

This commit is contained in:
Konrad Pozniak 2019-07-16 19:27:26 +02:00 committed by GitHub
parent cecbb336fe
commit 16bb011f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
}
};