Skip to content

Commit 3af9eee

Browse files
committed
fwd anim to teach user about the swiping is now initiated onSizeChanged() instead of onMeasure() as onMeasure is repeatedly called when the parent layout has an animation or progress bar.
1 parent ddd7685 commit 3af9eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proswipebutton/src/main/java/in/shadowfax/proswipebutton/ProSwipeButton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ public boolean onTouch(View v, MotionEvent event) {
192192
}
193193

194194
@Override
195-
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
196-
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
195+
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
196+
super.onSizeChanged(w, h, oldw, oldh);
197197
startFwdAnim();
198198
}
199199

0 commit comments

Comments
 (0)