|
|
@ -3,6 +3,8 @@ package com.kanglai.push.ui.fragment; |
|
|
|
import android.content.Context; |
|
|
|
import android.content.Context; |
|
|
|
import android.content.Intent; |
|
|
|
import android.content.Intent; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.os.Bundle; |
|
|
|
|
|
|
|
import android.os.Handler; |
|
|
|
|
|
|
|
import android.os.Looper; |
|
|
|
import android.text.TextUtils; |
|
|
|
import android.text.TextUtils; |
|
|
|
import android.view.LayoutInflater; |
|
|
|
import android.view.LayoutInflater; |
|
|
|
import android.view.MotionEvent; |
|
|
|
import android.view.MotionEvent; |
|
|
@ -204,9 +206,17 @@ public class MessageFragment extends BaseFragment<FragmentMessageBinding, Messag |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private long lastClickTime = 0; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onItemViewClicked(View v, LocalPushChatMsg item) { |
|
|
|
public void onItemViewClicked(View v, LocalPushChatMsg item) { |
|
|
|
|
|
|
|
long currentTime = System.currentTimeMillis(); |
|
|
|
|
|
|
|
// 设置两次点击的最小时间间隔,例如500毫秒
|
|
|
|
|
|
|
|
long minClickInterval = 500; |
|
|
|
|
|
|
|
if (currentTime - lastClickTime > minClickInterval) { |
|
|
|
instantLauncherResult.launch(item); |
|
|
|
instantLauncherResult.launch(item); |
|
|
|
|
|
|
|
lastClickTime = currentTime; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|