Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Commit 96ebb0c

Browse files
committed
Merge pull request #82 from ypresto/fix-crash-fling-zero
Fix crash when getScaledOverflingDistance() == 0
2 parents d4bdd5e + 386fc05 commit 96ebb0c

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

FreeFlow/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
buildscript {
22
dependencies {
3-
classpath 'com.android.tools.build:gradle:0.14.4'
3+
classpath 'com.android.tools.build:gradle:1.1.0'
44
}
55
}
6-
apply plugin: 'android-library'
6+
apply plugin: 'com.android.library'
77

88
repositories {
99
mavenLocal()
@@ -29,4 +29,4 @@ repositories {
2929
mavenLocal()
3030
mavenCentral()
3131
}
32-
apply from: '../maven_push.gradle'
32+
apply from: '../maven_push.gradle'

FreeFlow/src/com/comcast/freeflow/core/FreeFlowContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ protected void moveViewport(boolean isInFlingMode) {
12611261
viewPortY = (int) (mScrollableHeight + overflingDistance);
12621262
}
12631263

1264-
if (mEdgeEffectsEnabled) {
1264+
if (mEdgeEffectsEnabled && overflingDistance > 0) {
12651265
if (viewPortX <= 0) {
12661266
mLeftEdge.onPull(viewPortX / (-overflingDistance));
12671267
} else if (viewPortX >= mScrollableWidth) {

examples/Artbook/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
buildscript {
22
dependencies {
3-
classpath 'com.android.tools.build:gradle:0.14.4'
3+
classpath 'com.android.tools.build:gradle:1.1.0'
44
}
55
}
66

7-
apply plugin: 'android'
7+
apply plugin: 'com.android.application'
88

99
dependencies {
1010
compile project(':FreeFlow')

examples/PhotoGrid/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
buildscript {
22
dependencies {
3-
classpath 'com.android.tools.build:gradle:0.14.4'
3+
classpath 'com.android.tools.build:gradle:1.1.0'
44
}
55
}
66

7-
apply plugin: 'android'
7+
apply plugin: 'com.android.application'
88

99
dependencies {
1010
compile project(':FreeFlow')

0 commit comments

Comments
 (0)