Skip to content

UnsupportedOperationException #16

@QiXi

Description

@QiXi

Fatal Exception: java.lang.UnsupportedOperationException
at android.view.GLES20Canvas.clipPath(GLES20Canvas.java:429)
at com.larswerkman.lobsterpicker.LobsterPicker.onDraw(Unknown Source)
Sony ST23I Android 4.0.4

found:
http://stackoverflow.com/questions/13850259/is-there-a-way-to-disable-hardware-acceleration-only-for-android-4-0-3/22643710#22643710
and
http://stackoverflow.com/questions/8895677/work-around-canvas-clippath-that-is-not-supported-in-android-any-more/8895894#8895894

fix
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
picker.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions