mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
NativeView recycled for android
This commit is contained in:
@@ -47,7 +47,11 @@ export class AndroidApplication extends Observable implements AndroidApplication
|
||||
return this.foregroundActivity;
|
||||
}
|
||||
|
||||
public init(nativeApp: any) {
|
||||
public init(nativeApp: android.app.Application) {
|
||||
if (this.nativeApp === nativeApp) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.nativeApp) {
|
||||
throw new Error("application.android already initialized.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user