Skip to content

Instantly share code, notes, and snippets.

@myroniak
Created June 13, 2016 17:38
Show Gist options
  • Save myroniak/6fd3ddb426981357dcec8950d723d6fb to your computer and use it in GitHub Desktop.
Save myroniak/6fd3ddb426981357dcec8950d723d6fb to your computer and use it in GitHub Desktop.
case R.id.action_delete_items:
CustomFragmentDialog mCustomFragmentDialog = new CustomFragmentDialog();
mCustomFragmentDialog.caller = new CustomFragmentDialog.NoticeDialogListener() {
@Override
public void onDialogPositiveClick(DialogInterface dialog) {
clearData();
mTaskAdapter.notifyDataSetChanged();
}
};
mCustomFragmentDialog.show(getFragmentManager(), "");
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment