Fix a typo
This commit is contained in:
+2
-2
@@ -29,11 +29,11 @@ abstract class AndroidResourceManagerBase(project: Project, searchPath: String?)
|
||||
val fileManager = VirtualFileManager.getInstance()
|
||||
val watchDir = fileManager.findFileByUrl("file://" + searchPath)
|
||||
val psiManager = PsiManager.getInstance(project)
|
||||
val files = watchDir?.getChildren()?.toArrayList()?.map { psiManager.findFile(it) }?.mapNotNull { it } ?: ArrayList(0)
|
||||
val files = watchDir?.getChildren()?.toArrayList()?.map { psiManager.findFile(it) }?.mapNotNull { it } ?: listOf()
|
||||
return files.sortBy({it.getName()})
|
||||
}
|
||||
|
||||
protected fun vritualFileToPsi(vf: VirtualFile): PsiFile? {
|
||||
protected fun virtualFileToPsi(vf: VirtualFile): PsiFile? {
|
||||
val psiManager = PsiManager.getInstance(project)
|
||||
return psiManager.findFile(vf)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user