mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Remove commented code (#2701)
This commit is contained in:
parent
013e1a5430
commit
43f314d1df
2 changed files with 0 additions and 131 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue