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

UnsupportedOperationException GLES20Canvas.clipPath in 4.0 #50

Closed
0kai opened this issue Apr 6, 2017 · 5 comments
Closed

UnsupportedOperationException GLES20Canvas.clipPath in 4.0 #50

0kai opened this issue Apr 6, 2017 · 5 comments

Comments

@0kai
Copy link

0kai commented Apr 6, 2017

1 android.view.GLES20Canvas.clipPath(GLES20Canvas.java:424)
2 co.lujun.androidtagview.TagView.void drawRipple(android.graphics.Canvas)(SourceFile:329)
3 co.lujun.androidtagview.TagView.void onDraw(android.graphics.Canvas)(SourceFile:189)
4 android.view.View.draw(View.java:10988)
5 android.view.View.getDisplayList(View.java:10427)
6 android.view.ViewGroup.drawChild(ViewGroup.java:2850)
7 android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
8 android.view.View.draw(View.java:10991)
9 android.view.View.getDisplayList(View.java:10427)
10 android.view.ViewGroup.drawChild(ViewGroup.java:2850)
11 android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
12 android.view.View.getDisplayList(View.java:10425)
13 android.view.ViewGroup.drawChild(ViewGroup.java:2850)
14 android.support.v7.widget.RecyclerView.drawChild(SourceFile:3838)
15 android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
@whilu
Copy link
Owner

whilu commented Apr 9, 2017

@0kai
There are some problem about hardware acceleration, you can disable hardware acceleration in your 'Activity' which used AndroidTagView (like this).
I will improve this in the next version.
Thanks! 😄

whilu added a commit that referenced this issue Apr 9, 2017
@whilu
Copy link
Owner

whilu commented Apr 16, 2017

This problem has been improved in v1.1.1, so I close the issue. Thanks!

@whilu whilu closed this as completed Apr 16, 2017
@0kai
Copy link
Author

0kai commented May 15, 2017

catch a same issue after update to v1.1.1
image

Does the problem only been improved, may reproduce ?

@whilu
Copy link
Owner

whilu commented May 15, 2017

The setLayerType(View.LAYER_TYPE_SOFTWARE, null) method looks useless in U8825D?

Look this: LAYER_TYPE_SOFTWARE still view drawn with hardware acceleration

I don't have this phone and tested on the emulator last time, It's OK on emulator because there is no hardware acceleration.

Finally, I add protection for UnsupportedOperationException, but there is no ripple effect anymore(Of course, there shouldn't be have).

I released v1.1.2, and I hope you can help with the test if you have that phone(or phone with Android API level 11-17). That would be great!

Thanks!

@0kai
Copy link
Author

0kai commented May 16, 2017

OK, but I do not have the U8825D phone, got it from crash report from market.
And I will update this library to v1.1.2, if any new message will let you know.

Thanks!

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

No branches or pull requests

2 participants