-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
New error Marshmallow (only?) - "Underflow in restore - more restores than saves" #74
Comments
If it means anything, I can confirm this one. Crashes Marshmallow only for me. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I ended up wrapping the insides of the draw method with a try/catch and if the exception is thrown cause the onCompleteionListener to be triggered. While a try/catch is not ideal it does function like pre-M. `public void draw(Canvas canvas) { |
+1 |
+1 |
@traex with M rolling out soon, any update on the issue please? |
Wrapping the whole onDraw method doesn't call the onRippleCompleteListener class, EDIT: It doesn't seem necessary in Marshmallow to call canvas.restore(). So instead of using a try-catch block, adding a simple condition to check whether the device's running Marshmallow will suffice
|
+1 |
1 similar comment
+1 |
+1 |
1 similar comment
+1 |
Please see #92. It will be released asap |
Issue still persists on Android M using versino 1.3 of the library |
There are two solutions for this Problem.
|
Facing the same problem. Haven't tried @GirishBhalerao's suggestions though. |
this solves the issue #124 (comment) |
Please try this fixed version: https://github.com/patrickpissurno/RippleEffect/ |
Error at:
Not sure if this helps? http://stackoverflow.com/questions/18220084/underflow-in-restore-in-android-4-3
The text was updated successfully, but these errors were encountered: