Access filesDir lazily (initialize on the background thread)

This commit is contained in:
Sergey Solovyev
2017-05-26 19:03:31 +02:00
parent a8821e75bf
commit adf764cf13
5 changed files with 32 additions and 18 deletions

View File

@@ -199,7 +199,7 @@ public class FunctionsRegistry extends BaseEntitiesRegistry<Function> {
@Override
@NonNull
protected File getEntitiesFile() {
return new File(filesDir, "functions.json");
return new File(filesDir.get(), "functions.json");
}
@Override