Skip to content

Commit 03f255d

Browse files
committed
Improve check system file
1 parent 7b06eaf commit 03f255d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor-view/src/main/java/com/duy/ide/DiagnosticPresenter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ private void show(ArrayList<Diagnostic> diagnostics) {
163163

164164
private boolean isSystemFile(File file) {
165165
try {
166+
//data dir
166167
File systemDir = mActivity.getFilesDir().getParentFile();
167-
return !systemDir.getCanonicalPath().startsWith(file.getCanonicalPath());
168+
return systemDir.getCanonicalPath().startsWith(file.getCanonicalPath());
168169
} catch (IOException e) {
169170
e.printStackTrace();
170171
return false;

0 commit comments

Comments
 (0)