Fix workspaceRClasses not being visible after first invocation
WorkspaceRClasses were not being returned after the initial creation due to
faulty condition checking. This CL fixes the condition.
@@ -167,9 +167,13 @@ public class BlazeLightResourceClassService implements LightResourceClassService
}
BlazeRClass rClass = workspaceRClasses.get(qualifiedName);
- if (rClass != null && scope.isSearchInModuleContent(rClass.getModule())) {
+ if (rClass != null) {
+ if (scope.isSearchInModuleContent(rClass.getModule())) {
+ return rClass;
+ } else {
return null;
}
+ }
Module workspaceModule =
ModuleManager.getInstance(project).findModuleByName(BlazeDataStorage.WORKSPACE_MODULE_NAME);
