mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Activity intent extras are set on application run which breaks Frame class logic. They were never set on lower API levels (#2367)
This commit is contained in:
2
apps/css-perf-test/package.json
Normal file
2
apps/css-perf-test/package.json
Normal file
@ -0,0 +1,2 @@
|
||||
{ "name" : "css-perf-test",
|
||||
"main" : "app.js" }
|
@ -773,10 +773,13 @@ class ActivityCallbacksImplementation implements definition.AndroidActivityCallb
|
||||
|
||||
// We have extras when we call - new Frame().navigate();
|
||||
// savedInstanceState is used when activity is recreated.
|
||||
// NOTE: On API 23+ we get extras on first run.
|
||||
// Check changed - first try to get frameId from Extras if not from saveInstanceState.
|
||||
if (extras) {
|
||||
frameId = extras.getInt(INTENT_EXTRA, -1);
|
||||
}
|
||||
else if (savedInstanceState) {
|
||||
|
||||
if (savedInstanceState && frameId < 0) {
|
||||
frameId = savedInstanceState.getInt(INTENT_EXTRA, -1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user