package request.http.com.httprequest.utils;
import android.util.Log;
/**
- Date: 2019/7/26
- Time: 14:25
- author:Guest
*/
public class buttonUtils {
private static long lastTime= 0;
// 两次点击按钮之间的点击间隔不能少于5000毫秒
private static final int MIN_CLICK_DELAY_TIME = 5000;
public static boolean isButtonFastClick() {
boolean flag = false;
long mCurTime = System.currentTimeMillis();
if ((mCurTime - lastTime) >= MIN_CLICK_DELAY_TIME) {
flag = true;
}
lastTime= mCurTime;
return flag;
}
}