fix(android): transition state handling (#10528)

This commit is contained in:
Alireza Sharghi
2024-04-24 18:10:00 +02:00
committed by GitHub
parent 256b2ad801
commit 632a348e9a

View File

@ -176,7 +176,7 @@ export class PageTransition extends Transition {
const toPage = newEntry.resolvedPage; const toPage = newEntry.resolvedPage;
const newFragment: androidx.fragment.app.Fragment = newEntry.fragment; const newFragment: androidx.fragment.app.Fragment = newEntry.fragment;
const state = SharedTransition.getState(this.id); const state = SharedTransition.getState(this.id);
const pageEnd = state.pageEnd; const pageEnd = state?.pageEnd;
//we can't look for presented right now as the toPage might not be loaded //we can't look for presented right now as the toPage might not be loaded
// and thus some views like ListView/Pager... might not have loaded their "children" // and thus some views like ListView/Pager... might not have loaded their "children"