fix: img.h not working;

This commit is contained in:
hyb1996
2018-09-26 23:43:13 +08:00
parent bb130f56ea
commit 301a4286e5
3 changed files with 6 additions and 4 deletions

View File

@@ -122,7 +122,11 @@ public class ScriptOperations {
}
private void notifyFileCreated(ScriptFile directory, ScriptFile scriptFile) {
mExplorer.notifyItemCreated(new ExplorerFileItem(scriptFile, mExplorerPage));
if (scriptFile.isDirectory()) {
mExplorer.notifyItemCreated(new ExplorerDirPage(scriptFile, mExplorerPage));
} else {
mExplorer.notifyItemCreated(new ExplorerFileItem(scriptFile, mExplorerPage));
}
}
public void newFile() {