traex / RippleEffect

Implementation of Ripple effect from Material Design for Android API 9+
MIT License
4.93k stars 1.08k forks source link

ripple view crashes for targetSdkVersion above 22 #124

Open HamedGh opened 7 years ago

HamedGh commented 7 years ago

please bug fix this issue! I get this error:

java.lang.IllegalStateException: Underflow in restore - more restores than saves at android.graphics.Canvas.native_restore(Native Method) at android.graphics.Canvas.restore(Canvas.java:522) at com.andexert.library.RippleView.draw(RippleView.java:166)

patrickpissurno commented 7 years ago

Hey, I just released a fix. Check it out: https://github.com/patrickpissurno/RippleEffect/

ism33ail commented 7 years ago

Thanks @patrickpissurno that solves the problem it works for me on API 24

literakl commented 7 years ago

I can confirm this issue with API 24.

Mahan3340 commented 7 years ago

have this issue on API 25