This commit is contained in:
M66B 2022-03-05 09:23:46 +01:00
parent 113797139d
commit 5e21881764
1 changed files with 0 additions and 4 deletions

View File

@ -62,7 +62,6 @@ public class EditTextCompose extends FixedEditText {
private Boolean canUndo = null;
private Boolean canRedo = null;
private boolean checkKeyEvent = false;
private static final ExecutorService executor =
Helper.getBackgroundExecutor(1, "paste");
@ -193,7 +192,6 @@ public class EditTextCompose extends FixedEditText {
canRedo = null;
try {
checkKeyEvent = true;
int meta = KeyEvent.META_CTRL_ON;
if (what == android.R.id.redo)
meta = meta | KeyEvent.META_SHIFT_ON;
@ -201,8 +199,6 @@ public class EditTextCompose extends FixedEditText {
onKeyShortcut(KeyEvent.KEYCODE_Z, ke);
} catch (Throwable ex) {
Log.e(ex);
} finally {
checkKeyEvent = false;
}
return Boolean.TRUE.equals(what == android.R.id.redo ? canRedo : canUndo);