fix(android): nested frames were sometimes not recreated (#9725)

BREAKING CHANGE:

AndroidFragmentCallbacks now requires onResume as well

Migration steps:
specify onResume on custom fragment implementations
This commit is contained in:
Eduardo Speroni
2021-12-31 13:39:54 -03:00
committed by Nathan Walker
parent 638388244e
commit 902a4c6afc
4 changed files with 38 additions and 0 deletions

View File

@ -19,6 +19,10 @@ const FragmentClass = (<any>org.nativescript.widgets.FragmentBase).extend('com.t
this._callbacks.onPause(this, superProto.onPause);
},
onResume(): void {
this._callbacks.onResume(this, superProto.onResume);
},
onCreate(savedInstanceState: android.os.Bundle) {
if (!this._callbacks) {
setFragmentCallbacks(this);