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:
Hristo Hristov
2016-06-24 17:56:29 +03:00
committed by GitHub
parent 550c16ee66
commit ce6bf2dc58
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,2 @@
{ "name" : "css-perf-test",
"main" : "app.js" }

View File

@ -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)
}