Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit b1d4ecc

Browse files
author
vakrilov
committed
refactor: fix onCreate() deprecated API call
1 parent 874e4f8 commit b1d4ecc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

demo/AngularApp/app/activity.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Activity extends androidx.appcompat.app.AppCompatActivity {
1414
setActivityCallbacks(this);
1515
}
1616

17-
this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
17+
this._callbacks.onCreate(this, savedInstanceState, this.getIntent(), super.onCreate);
1818
}
1919

2020
protected onSaveInstanceState(outState: any): void { // android.os.Bundle

demo/JavaScriptApp/app/activity.android.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ androidx.appcompat.app.AppCompatActivity.extend("org.myApp.MainActivity", {
1010
if(!this._callbacks) {
1111
frame.setActivityCallbacks(this);
1212
}
13-
this._callbacks.onCreate(this, savedInstanceState, superProto.onCreate);
13+
this._callbacks.onCreate(this, savedInstanceState, this.getIntent(), superProto.onCreate);
1414
},
1515
onSaveInstanceState: function(outState) {
1616
this._callbacks.onSaveInstanceState(this, outState, superProto.onSaveInstanceState);

demo/TypeScriptApp/app/activity.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Activity extends androidx.appcompat.app.AppCompatActivity {
1313
setActivityCallbacks(this);
1414
}
1515

16-
this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
16+
this._callbacks.onCreate(this, savedInstanceState, this.getIntent(), super.onCreate);
1717
}
1818

1919
protected onSaveInstanceState(outState: any): void { // android.os.Bundle

0 commit comments

Comments
 (0)