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 #16

Open
QiXi opened this issue Apr 1, 2016 · 0 comments
Open

UnsupportedOperationException #16

QiXi opened this issue Apr 1, 2016 · 0 comments

Comments

@QiXi
Copy link

QiXi commented Apr 1, 2016

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);
}

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

1 participant