更新 NotificationListener.java
parent
a5b306a4a2
commit
ebd667f391
|
|
@ -10,7 +10,7 @@ import android.util.Log;
|
||||||
|
|
||||||
import com.nbee.echolink.model.WeChatMsg;
|
import com.nbee.echolink.model.WeChatMsg;
|
||||||
import com.nbee.echolink.utils.HandleNoticeUtils;
|
import com.nbee.echolink.utils.HandleNoticeUtils;
|
||||||
import com.nbee.echolink.utils.NetworkUtil;
|
import com.nbee.echolink.utils.NetworkUtils;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
@ -27,7 +27,7 @@ public class NotificationListener extends NotificationListenerService {
|
||||||
private static final List<String> notAllowList = Arrays.asList("com.github.kr328.clash","com.google.android.dialer",
|
private static final List<String> notAllowList = Arrays.asList("com.github.kr328.clash","com.google.android.dialer",
|
||||||
"com.google.android.apps.messaging");
|
"com.google.android.apps.messaging");
|
||||||
private HandleNoticeUtils handleNoticeUtils;
|
private HandleNoticeUtils handleNoticeUtils;
|
||||||
private NetworkUtil networkUtil;
|
private NetworkUtils networkUtil;
|
||||||
private HashMap<String, Long> recentLogs = new HashMap<>();
|
private HashMap<String, Long> recentLogs = new HashMap<>();
|
||||||
private Handler logCleanerHandler = new Handler(Looper.getMainLooper());
|
private Handler logCleanerHandler = new Handler(Looper.getMainLooper());
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ public class NotificationListener extends NotificationListenerService {
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
handleNoticeUtils = new HandleNoticeUtils(this);
|
handleNoticeUtils = new HandleNoticeUtils(this);
|
||||||
networkUtil = new NetworkUtil(this);
|
networkUtil = new NetworkUtils(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue