|
@@ -1,4 +1,4 @@
|
|
|
-package com.mylove.viewbind;
|
|
|
+package com.benyanyi.viewbind;
|
|
|
|
|
|
import android.view.View;
|
|
|
import android.widget.Toast;
|
|
@@ -11,14 +11,14 @@ import java.lang.reflect.Method;
|
|
|
* @email ben@yanyi.red
|
|
|
* @overview
|
|
|
*/
|
|
|
-class clickListener implements View.OnClickListener {
|
|
|
+class ClickListener implements View.OnClickListener {
|
|
|
private long lastClickTime;
|
|
|
private Method method;
|
|
|
private Object object;
|
|
|
private String netErrorMsg;
|
|
|
private boolean isCheckNet;
|
|
|
|
|
|
- clickListener(Method method, Object object, String netErrorMsg, boolean isCheckNet) {
|
|
|
+ ClickListener(Method method, Object object, String netErrorMsg, boolean isCheckNet) {
|
|
|
this.method = method;
|
|
|
this.object = object;
|
|
|
this.netErrorMsg = netErrorMsg;
|
|
@@ -36,7 +36,8 @@ class clickListener implements View.OnClickListener {
|
|
|
}
|
|
|
}
|
|
|
long timeD = time - lastClickTime;
|
|
|
- if (0 < timeD && timeD < 600) {
|
|
|
+ long times = 600;
|
|
|
+ if (0 < timeD && timeD < times) {
|
|
|
return;
|
|
|
}
|
|
|
lastClickTime = time;
|