From 188a1d4a06c99a3fcfb0447bbef827b2eb3ed1f3 Mon Sep 17 00:00:00 2001 From: MUQING <1966944300@qq.com> Date: Wed, 27 Dec 2023 12:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5=E6=A0=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/muqingbfq/home.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/src/main/java/com/muqingbfq/home.java b/app/src/main/java/com/muqingbfq/home.java index 835e6cc..809fda2 100644 --- a/app/src/main/java/com/muqingbfq/home.java +++ b/app/src/main/java/com/muqingbfq/home.java @@ -68,6 +68,7 @@ public class home extends AppCompatActivity { browserConnectionCallback,//设置连接回调 null ); + mBrowser.connect(); //检测更新 new gj.jianchagengxin(this); binding.editView.setOnClickListener(view -> @@ -79,20 +80,6 @@ public class home extends AppCompatActivity { } public static ComponentName componentName; - @Override - protected void onStart() { - super.onStart(); - //Browser发送连接请求 - mBrowser.connect(); - } - - - @Override - protected void onStop() { - super.onStop(); - mBrowser.disconnect(); - } - private final List list = new ArrayList<>(); private class adaper extends FragmentStateAdapter { public adaper(@NonNull FragmentActivity fragmentActivity) {