mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-24 21:33:16 +08:00
修复 重命名文件时文件不存在不会提示的问题
This commit is contained in:
parent
810f2f36a6
commit
6b6fdd7ed9
@ -383,7 +383,7 @@ public class ScriptOperations {
|
||||
private String mExtension;
|
||||
|
||||
InputCallback(@Nullable String ext, String excluded) {
|
||||
mExtension = "." + ext;
|
||||
mExtension = ext == null ? null : "." + ext;
|
||||
mExcluded = excluded;
|
||||
}
|
||||
|
||||
@ -404,7 +404,7 @@ public class ScriptOperations {
|
||||
EditText editText = dialog.getInputEditText();
|
||||
if (editText == null)
|
||||
return;
|
||||
if (mExcluded != null && input.equals(mExcluded)) {
|
||||
if (input.equals(mExcluded)) {
|
||||
editText.setError(null);
|
||||
dialog.getActionButton(DialogAction.POSITIVE).setEnabled(true);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user