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:
@@ -13,7 +13,7 @@ export class Image {
|
||||
}
|
||||
|
||||
public loadFromResource(name: string): boolean {
|
||||
var androidApp = appModule.current.android;
|
||||
var androidApp = appModule.android;
|
||||
var res = androidApp.context.getResources();
|
||||
if (res) {
|
||||
var identifier: number = res.getIdentifier(name, 'drawable', androidApp.packageName);
|
||||
|
||||
Reference in New Issue
Block a user