mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
refresh preview if resource has been changed
This commit is contained in:
+11
-1
@@ -475,7 +475,17 @@ public class AndroidLayoutPreviewToolWindowManager implements ProjectComponent {
|
||||
final VirtualFile changedFile = event.getFile();
|
||||
final VirtualFile parent = changedFile.getParent();
|
||||
|
||||
if (parent != null && ResourceManager.isResourceDirectory(parent, myProject)) {
|
||||
if (parent == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ResourceManager.isResourceDirectory(parent, myProject)) {
|
||||
myToolWindowForm.updateLocales();
|
||||
render();
|
||||
}
|
||||
|
||||
final VirtualFile gp = parent.getParent();
|
||||
if (gp != null && ResourceManager.isResourceDirectory(gp, myProject)) {
|
||||
myToolWindowForm.updateLocales();
|
||||
render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user