From 667d22bace468ab2a3058b1ce30080e9b3cb9f51 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Thu, 6 Mar 2014 14:41:36 +1030 Subject: [PATCH] ConversationFragment: enable back button to dismiss The ConversationFragment has a AlertDialog for showing the message details, which sets the cancelable property to be false. This stops the user from being able to use the back button to dismiss the dialog. --- src/org/thoughtcrime/securesms/ConversationFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/ConversationFragment.java b/src/org/thoughtcrime/securesms/ConversationFragment.java index e7c248ecd1..8d5d6b4546 100644 --- a/src/org/thoughtcrime/securesms/ConversationFragment.java +++ b/src/org/thoughtcrime/securesms/ConversationFragment.java @@ -153,7 +153,7 @@ public class ConversationFragment extends SherlockListFragment AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle(R.string.ConversationFragment_message_details); builder.setIcon(Dialogs.resolveIcon(getActivity(), R.attr.dialog_info_icon)); - builder.setCancelable(false); + builder.setCancelable(true); if (dateReceived == dateSent || message.isOutgoing()) { builder.setMessage(String.format(getSherlockActivity() @@ -234,4 +234,4 @@ public class ConversationFragment extends SherlockListFragment public void setComposeText(String text); } -} \ No newline at end of file +}