Commit 777fb712 authored by Adrien Maglo's avatar Adrien Maglo

SlidingPaneLayout: reduce the precision to determine the state change

parent 60cdb95a
......@@ -868,7 +868,7 @@ public class SlidingPaneLayout extends ViewGroup {
mPanelSlideListener.onPanelClosed();
}
} else if (Math.abs(mSlideOffset - (1 - (float)mOverhangSize / mSlideRange))
<= 0.0001) {
<= 0.001) {
if (mState != STATE_OPENED) {
mState = STATE_OPENED;
if (mPanelSlideListener != null)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment