mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Modified the Application module. Removed the Application class and added its methods to the exports directly.
This commit is contained in:
@@ -5,7 +5,7 @@ export class UserPreferences {
|
||||
private sharedPreferences: any;
|
||||
|
||||
constructor() {
|
||||
this.sharedPreferences = appModule.current.android.context.getSharedPreferences("prefs.db", 0);
|
||||
this.sharedPreferences = appModule.android.context.getSharedPreferences("prefs.db", 0);
|
||||
}
|
||||
|
||||
public containsKey(key: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user