Skip to content

Commit f0999de

Browse files
committed
Fixed an issue with RecyclerView after gesture detector integration
1 parent fa9dac1 commit f0999de

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

EasyFlipView/src/main/java/com/wajahatkarim3/easyflipview/EasyFlipView.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,11 @@ public boolean dispatchTouchEvent(MotionEvent ev) {
467467

468468
@Override
469469
public boolean onTouchEvent(MotionEvent event) {
470-
return gestureDetector.onTouchEvent(event);
470+
if (isEnabled() && flipOnTouch) {
471+
return gestureDetector.onTouchEvent(event);
472+
} else {
473+
return super.onTouchEvent(event);
474+
}
471475
}
472476

473477
/**

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:4.0.0-beta03'
11+
classpath 'com.android.tools.build:gradle:4.1.0'
1212
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
1313
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1414
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Oct 26 13:11:27 IST 2018
1+
#Thu Oct 22 17:08:39 PKT 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

0 commit comments

Comments
 (0)