From 5c3b96a947253f7d7a0962b08a4d744f09ce20be Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Mon, 13 Jul 2015 11:25:10 -0700 Subject: [PATCH] fix onDestroy NPE when views not inflated Closes #3647 Fixes #3646 // FREEBIE --- src/org/thoughtcrime/securesms/ConversationActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index 8e1ab8eee6..2d49b0d1e5 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -29,7 +29,6 @@ import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.PorterDuff.Mode; import android.graphics.drawable.ColorDrawable; -import android.content.res.Configuration; import android.graphics.Bitmap; import android.net.Uri; import android.os.AsyncTask; @@ -277,7 +276,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity if (recipients != null) recipients.removeListener(this); if (securityUpdateReceiver != null) unregisterReceiver(securityUpdateReceiver); if (groupUpdateReceiver != null) unregisterReceiver(groupUpdateReceiver); - hideEmojiPopup(false); + if (isEmojiDrawerOpen()) hideEmojiPopup(false); super.onDestroy(); }