Skip to content
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

CrosswalkAnimatable and Android 7 #159

Open
tgensol opened this issue Jan 3, 2017 · 7 comments
Open

CrosswalkAnimatable and Android 7 #159

tgensol opened this issue Jan 3, 2017 · 7 comments

Comments

@tgensol
Copy link

tgensol commented Jan 3, 2017

Hi there,

It looks like on Android 7.0, if we set as asked :

<preference name="CrosswalkAnimatable" value="true" />

The app crashed and does not want to start.

I tried to remove it from my config.xml and add it, and always my app works without it, and not with it.

Regards

@gustavosysm
Copy link

Same problem here. @tgensol did you managed to solve it?

@tgensol
Copy link
Author

tgensol commented Mar 7, 2017

@gustavosysm I changed the XWalkCordovaView.java of the crosswalk plugin for not enabling the CrosswalkAnimatable boolean if it is Android 7.0 or superior.... I did not find something else to do at this time

@deliverymanager
Copy link

This is a major issue, as most apps with crosswalk and CrosswalkAnimatable = true will crash on android 7.
Also, I don't think this bug will be fixed from crosswalk, as they have abandoned crosswalk development.

@friedolinfoerder
Copy link

I've got the same problem. Is there any (good) workaround?

I like the plugin and it would be very bad to throw it away after integrating it in my application...

@gustavosysm
Copy link

My workaround was to change de file XWalkCordovaView.java.

`boolean prefAnimatable = false;
boolean manifestAnimatable = false;

        if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.N) {
            prefAnimatable = preferences == null ? false : preferences.getBoolean("CrosswalkAnimatable", false);
            manifestAnimatable = ai.metaData == null ? false : ai.metaData.getBoolean("CrosswalkAnimatable");
        }`

Then I had to remove and add platform again.

@samuelfaj
Copy link

Same problem here.

@lliamscholtz
Copy link

Hi guys, anyone found a solution to this yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants