File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
EasyFlipView-Library/src/main/java/com/wajahatkarim3/easyflipview Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public void flipTheView() {
149
149
*/
150
150
public void flipTheView (boolean withAnimation )
151
151
{
152
- if (withAnimation == false )
152
+ if (! withAnimation )
153
153
{
154
154
mSetLeftIn .setDuration (0 );
155
155
mSetRightOut .setDuration (0 );
@@ -185,7 +185,7 @@ public boolean onTouchEvent(MotionEvent event) {
185
185
float dx = x2 -x1 ;
186
186
float dy = y2 -y1 ;
187
187
float MAX_CLICK_DISTANCE = 0.5f ;
188
- if ( dx < MAX_CLICK_DISTANCE && dy < MAX_CLICK_DISTANCE && dx >= 0 && dy >= 0 )
188
+ if (( dx >= 0 && dx < MAX_CLICK_DISTANCE )&&( dy >= 0 && dy < MAX_CLICK_DISTANCE ) )
189
189
{
190
190
flipTheView ();
191
191
}
@@ -195,7 +195,6 @@ public boolean onTouchEvent(MotionEvent event) {
195
195
else {
196
196
return super .onTouchEvent (event );
197
197
}
198
- return false ;
199
198
}
200
199
201
200
/**
You can’t perform that action at this time.
0 commit comments