mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Modified the Application module. Removed the Application class and added its methods to the exports directly.
This commit is contained in:
@ -207,13 +207,13 @@ export class FileSystemAccess {
|
||||
}
|
||||
|
||||
public getDocumentsFolderPath(): string {
|
||||
var context = appModule.current.android.context;
|
||||
var context = appModule.android.context;
|
||||
var dir = context.getFilesDir();
|
||||
return dir.getAbsolutePath();
|
||||
}
|
||||
|
||||
public getTempFolderPath(): string {
|
||||
var context = appModule.current.android.context;
|
||||
var context = appModule.android.context;
|
||||
var dir = context.getCacheDir();
|
||||
return dir.getAbsolutePath();
|
||||
}
|
||||
|
Reference in New Issue
Block a user