make attachments dialog cancelable

This commit is contained in:
Andrew Dolgov 2013-04-10 08:11:36 +04:00
parent 4c06143b5a
commit 9149add751

View File

@ -650,6 +650,7 @@ public class OnlineActivity extends CommonActivity {
Dialog dialog = new Dialog(OnlineActivity.this); Dialog dialog = new Dialog(OnlineActivity.this);
AlertDialog.Builder builder = new AlertDialog.Builder(OnlineActivity.this) AlertDialog.Builder builder = new AlertDialog.Builder(OnlineActivity.this)
.setTitle(R.string.attachments_prompt) .setTitle(R.string.attachments_prompt)
.setCancelable(true)
.setSingleChoiceItems(items, 0, new OnClickListener() { .setSingleChoiceItems(items, 0, new OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {