-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix clear history transition #4951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -1,4 +1,4 @@ | |||
| { | |||
| "name": "tns-samples-apps", | |||
| "main": "ui-tests-app/app.js" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this
| class NoTransition extends Transition { | ||
| public createAndroidAnimator(transitionType: string): android.animation.Animator { | ||
| return createDummyZeroDurationAnimator(); | ||
| export function _updateAnimations(entry: ExpandedEntry): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to _updateTransitions
| return fragment[CALLBACKS] as FragmentCallbacks; | ||
| } | ||
|
|
||
| function updateCurrentFragmentTransitions(entry: ExpandedEntry): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks the same as _updateAnimations
| animator.entry = null; | ||
| } | ||
|
|
||
| function clearTransitions(fragment: android.app.Fragment, removeListener: boolean): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to clearReenterAndExitTransitions
|
|
||
| @profile | ||
| public onDestroy(fragment: android.app.Fragment, superFunc: Function): void { | ||
| const entry = this.entry; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry and page are unsused
| const entry = getFragmentCallbacks(fragment).entry; | ||
| switch (nextAnim) { | ||
| case enterFakeResourceId: | ||
| case AnimationType.enterFakeResourceId: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder: Move to frame.android
029b197 to
3ea8596
Compare
Implemented custom fragment save/restore state. When navigating back we reverse manually transitions/animations because we no longer add them to navite backstack. Fragment instance stored on entry. Animation and Transition listeners now holds reference to entry instead of fragment for easier update of fragment. Animation and Transition listeners removed when entry removed from backstack. Animation and Transition removed from fragment when fragment activity is destroyed.
Fixed bug where goBack took the last element in backstack while navigationQueue is not empty. Fixed bug where goBack to specific entry in the backstack was removing that entry... Removed duplicated method Refactored method name Fixed TS
3ea8596 to
331ad27
Compare
|
run uitests ios |
|
ios-issues |
|
ios-pickers |
|
ios-textbase |
|
@hshristov, good news. It seems this PR is good to be merged. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fix #4950
Implemented custom fragment save/restore state.
When navigating back we reverse manually transitions/animations because we no longer add them to navite backstack.
Fragment instance stored on entry.
Animation and Transition listeners now holds reference to entry instead of fragment for easier update of fragment.
Animation and Transition listeners removed when entry removed from backstack.
Animation and Transition removed from fragment when fragment activity is destroyed.