Remove commented code (#2701)

This commit is contained in:
Vivek Maskara 2019-03-21 21:56:12 +05:30 committed by neslihanturan
parent 013e1a5430
commit 43f314d1df
2 changed files with 0 additions and 131 deletions

View file

@ -249,49 +249,5 @@ public class DeleteTask extends AsyncTask<Void, Integer, Boolean> {
AlertDialog d = alert.create();
d.show();
// AlertDialog.Builder alert = new AlertDialog.Builder(context);
// alert.setMessage(question);
// final EditText input = ne
// w EditText(context);
// input.setText(defaultValue);
// alert.setView(input);
// input.requestFocus();
// alert.setPositiveButton(R.string.ok, (dialog, whichButton) -> {
// String reason = input.getText().toString();
//
// ((ReviewActivity)context).reviewController.swipeToNext();
// ((ReviewActivity)context).runRandomizer();
//
// DeleteTask deleteTask = new DeleteTask(context, media, reason);
// deleteTask.execute();
// });
// alert.setNegativeButton(R.string.cancel, (dialog, whichButton) -> {
// });
// AlertDialog d = alert.create();
// input.addTextChangedListener(new TextWatcher() {
// private void handleText() {
// final Button okButton = d.getButton(AlertDialog.BUTTON_POSITIVE);
// if (input.getText().length() == 0) {
// okButton.setEnabled(false);
// } else {
// okButton.setEnabled(true);
// }
// }
//
// @Override
// public void afterTextChanged(Editable arg0) {
// handleText();
// }
//
// @Override
// public void beforeTextChanged(CharSequence s, int start, int count, int after) {
// }
//
// @Override
// public void onTextChanged(CharSequence s, int start, int before, int count) {
// }
// });
// d.show();
// d.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(defaultValue.length() > 0);
}
}