Skip to content

Conversation

@manoldonev
Copy link
Contributor

@manoldonev manoldonev commented Aug 1, 2018

Fixes Error: java.lang.CloneNotSupportedException: Class android.support.v4.app.FragmentManagerImpl$AnimationOrAnimator doesn't implement Cloneable in specific projects.

I was able to reproduce the problem when added the firebase plugin to a working hello-world app (cli next, android runtime next, tns-core-modules next). The root of the problem is the fact that different versions of the support library expose different API for android.support.v4.app.FragmentManagerImpl.loadAnimations(...) -- one returns Animation, the other AnimationOrAnimatior (that is not cloneable). Might be related to
NativeScript/nativescript-cli#3773 as we are really unsure which support library version is used (and why).

Related to #5785
Related to #6129

BREAKING CHANGE

Before:
Default fragment enter animation was Android version specific

After:
Default fragment enter animation is now fade animation for all Android versions

You can customise the transition per navigation entry or globally via the navigation transitions API

@manoldonev manoldonev self-assigned this Aug 1, 2018
@manoldonev manoldonev requested a review from vakrilov August 1, 2018 14:38
@ghost ghost added the in progress label Aug 1, 2018
@ns-bot ns-bot added the cla: yes label Aug 1, 2018
@manoldonev manoldonev force-pushed the mdonev/support-lib-suppress-reflection branch from cd26e30 to bf2ba9c Compare August 1, 2018 15:13
@manoldonev manoldonev changed the title fix(android): temporarily suppress reflection for default animations fix(android): suppress reflection for default animations Aug 1, 2018
@SvetoslavTsenov
Copy link
Contributor

test branch_ns_ng_animation_examples branch_qsf

@shiv19
Copy link
Member

shiv19 commented Aug 1, 2018

@manoldonev Just tried it out 😄
This works like a charm 👍

@ghost ghost assigned vakrilov Aug 2, 2018
@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 2, 2018

test branch_ns_ng_animation_examples branch_qsf

2 similar comments
@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 2, 2018

test branch_ns_ng_animation_examples branch_qsf

@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 2, 2018

test branch_ns_ng_animation_examples branch_qsf

@manoldonev manoldonev merged commit cc19b40 into master Aug 2, 2018
@ghost ghost removed the in progress label Aug 2, 2018
@manoldonev manoldonev deleted the mdonev/support-lib-suppress-reflection branch August 2, 2018 13:01
@lock
Copy link

lock bot commented Aug 26, 2019

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.

@lock lock bot locked and limited conversation to collaborators Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants