Skip to content

Commit fda4d26

Browse files
authored
Merge pull request #6 from shilipai/master
Initialize the value of config to -1 in the class SpringHelper
2 parents a96e3e4 + 3f81864 commit fda4d26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FloatingViewLib/src/main/java/com/ufreedom/floatingview/spring/SpringHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class SpringHelper {
2222
private float endValue;
2323
private double configValueOne;
2424
private double configValueTwo;
25-
private int config;
25+
private int config = -1;
2626
private ReboundListener reboundListener;
2727
private SpringListener springListener;
2828

@@ -109,7 +109,7 @@ public void onSpringUpdate(Spring spring) {
109109

110110
public void start(final YumFloating yumFloating){
111111
if (config == -1){
112-
throw new IllegalStateException("Hi , You mast call one of the method configBouncinessAndSpeed and configTensionAndFriction to make config");
112+
throw new IllegalStateException("Hi , You must call one of the method configBouncinessAndSpeed and configTensionAndFriction to make config");
113113
}
114114

115115
Spring spring = null;

0 commit comments

Comments
 (0)