if (messageId != -1) {
Message message = new Message(context, messageId);
conversationPrefs = new ConversationPrefsHelper(context, message.getThreadId());
if (conversationPrefs.getNotificationsEnabled()) {
if (!LifecycleHandler.isApplicationVisible() &&
<BUG>intent.getBooleanExtra(EXTRA_POPUP, false) && prefs.getBoolean(SettingsFragment.QUICKREPLY, true)) {
</BUG>
popupIntent = new Intent(context, QKReplyActivity.class);
popupIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
popupIntent.putExtra(QKReplyActivity.EXTRA_THREAD_ID, message.getThreadId());

if (messageId != -1) {
Message message = new Message(context, messageId);
conversationPrefs = new ConversationPrefsHelper(context, message.getThreadId());
if (conversationPrefs.getNotificationsEnabled()) {
if (!LifecycleHandler.isApplicationVisible() &&
intent.getBooleanExtra(EXTRA_POPUP, false) && prefs.getBoolean(SettingsFragment.QUICKREPLY, Build.VERSION.SDK_INT < 23)) {
popupIntent = new Intent(context, QKReplyActivity.class);
popupIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
popupIntent.putExtra(QKReplyActivity.EXTRA_THREAD_ID, message.getThreadId());
