mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user