修复 重命名文件时文件不存在不会提示的问题
This commit is contained in:
@@ -383,7 +383,7 @@ public class ScriptOperations {
|
|||||||
private String mExtension;
|
private String mExtension;
|
||||||
|
|
||||||
InputCallback(@Nullable String ext, String excluded) {
|
InputCallback(@Nullable String ext, String excluded) {
|
||||||
mExtension = "." + ext;
|
mExtension = ext == null ? null : "." + ext;
|
||||||
mExcluded = excluded;
|
mExcluded = excluded;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -404,7 +404,7 @@ public class ScriptOperations {
|
|||||||
EditText editText = dialog.getInputEditText();
|
EditText editText = dialog.getInputEditText();
|
||||||
if (editText == null)
|
if (editText == null)
|
||||||
return;
|
return;
|
||||||
if (mExcluded != null && input.equals(mExcluded)) {
|
if (input.equals(mExcluded)) {
|
||||||
editText.setError(null);
|
editText.setError(null);
|
||||||
dialog.getActionButton(DialogAction.POSITIVE).setEnabled(true);
|
dialog.getActionButton(DialogAction.POSITIVE).setEnabled(true);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user