Remove edit handler that is just eating events (#2634)

This handler should be unnecessary on most versions of Android, and it's currently just swallowing events that would be handled by default. Removing it to let the system take the default action.
This commit is contained in:
RoboErikG
2019-07-12 13:29:46 -07:00
committed by GitHub
parent 5bb98bc998
commit 8abba6ae10

View File

@@ -115,19 +115,6 @@ public class JsDialogHelper {
builder.setNegativeButton(android.R.string.cancel, new CancelListener());
}
final AlertDialog dialog = builder.show();
if (edit != null) { // Is it a prompt dialog?
edit.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
// TODO: Accept input, close keyboard, close dialog
return true;
}
return false;
}
});
}
}
private class CancelListener implements DialogInterface.OnCancelListener,