Skip to content

Commit 587a646

Browse files
author
Antonio Cueva
committed
Skip native fragments not controlled by ns
1 parent 6c9d458 commit 587a646

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ui/frame/frame.android.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@ var NativeActivity = {
444444
this.super.onAttachFragment(fragment);
445445

446446
if (!(<any>fragment).entry) {
447+
//HACK to skip native fragments not controlled by ns
448+
if (fragment.getTag() === "datePicker" || fragment.getTag() === "timePicker") {
449+
return;
450+
}
451+
//End of the hack
452+
447453
// There is no entry set to the fragment, so this must be destroyed fragment that was recreated by Android.
448454
// We should find its corresponding page in our backstack and set it manually.
449455
findPageForFragment(fragment, this.frame);

0 commit comments

Comments
 (0)