Remove 'OK' from tag selection dialog

pull/413/head
Alex Baker 8 years ago
parent bcee804a78
commit 3f32030b8e

@ -221,19 +221,13 @@ public final class TagsControlSet extends TaskEditControlFragment {
private AlertDialog buildDialog() { private AlertDialog buildDialog() {
return dialogBuilder.newDialog() return dialogBuilder.newDialog()
.setView(dialogView) .setView(dialogView)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { .setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onDismiss(DialogInterface dialogInterface) {
tagList = getTagList(); tagList = getTagList();
refreshDisplayView(); refreshDisplayView();
} }
}) })
.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
refreshDisplayView();
}
})
.create(); .create();
} }

Loading…
Cancel
Save