title: IllegalStateException using Ripple Effect Library on Android M Devices
body: <p>Using <a href="https://github.com/traex/RippleEffect" rel="noreferrer">this</a> <code>library</code> to implement <code>Ripple Effect</code> and it works just fine <strong>except</strong> on <code>Android M</code> devices.</p>
  
  <p>On Android <strong>M</strong> Devices getting <code>IllegalStateException</code> that says <em>Underflow in restore - more restores than saves</em></p>
  
  <pre><code>FATAL EXCEPTION: main
  Process: com.example.ripplethings, PID: 20119
  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:540)
  at com.andexert.library.RippleView.draw(RippleView.java:166)
  </code></pre>