修复通知栏问题

This commit is contained in:
muqing 2023-12-27 12:20:01 +08:00
parent a6672148c6
commit 188a1d4a06

View File

@ -68,6 +68,7 @@ public class home extends AppCompatActivity {
browserConnectionCallback,//设置连接回调 browserConnectionCallback,//设置连接回调
null null
); );
mBrowser.connect();
//检测更新 //检测更新
new gj.jianchagengxin(this); new gj.jianchagengxin(this);
binding.editView.setOnClickListener(view -> binding.editView.setOnClickListener(view ->
@ -79,20 +80,6 @@ public class home extends AppCompatActivity {
} }
public static ComponentName componentName; public static ComponentName componentName;
@Override
protected void onStart() {
super.onStart();
//Browser发送连接请求
mBrowser.connect();
}
@Override
protected void onStop() {
super.onStop();
mBrowser.disconnect();
}
private final List<Fragment> list = new ArrayList<>(); private final List<Fragment> list = new ArrayList<>();
private class adaper extends FragmentStateAdapter { private class adaper extends FragmentStateAdapter {
public adaper(@NonNull FragmentActivity fragmentActivity) { public adaper(@NonNull FragmentActivity fragmentActivity) {