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.
This commit is contained in:
Joel Stanley 2014-03-06 14:41:36 +10:30
parent 3d782449ed
commit 667d22bace

View file

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