private static long lastClickTime =0;
public static boolean isFastClick() {
boolean flag =true;
long currentClickTime = System.currentTimeMillis();
if ((currentClickTime -lastClickTime) >=MIN_DELAY_TIME) {
flag =false;
}
lastClickTime = currentClickTime;
return flag;
}
网友评论