Skip to content

UnsupportedOperationException GLES20Canvas.clipPath in 4.0 #50

Closed

Description

@0kai
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)

Activity

  1. whilu commented on Apr 9, 2017

    @whilu
    Owner

    @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! 😄

  2. added a commit that references this issue on Apr 9, 2017
  3. whilu commented on Apr 16, 2017

    @whilu
    Owner

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

  4. 0kai commented on May 15, 2017

    @0kai
    Author

    catch a same issue after update to v1.1.1
    image

    Does the problem only been improved, may reproduce ?

  5. whilu commented on May 15, 2017

    @whilu
    Owner

    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!

  6. 0kai commented on May 16, 2017

    @0kai
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions