mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 19:28:26 +00:00
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:
parent
3d782449ed
commit
667d22bace
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user