From 9c67fc611daf6f9cb7c05f72d598543bff2d26f1 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 25 十月 2024 11:23:17 +0800 Subject: [PATCH] s2024年10月25日11:23:14 --- app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java index cbf332e..12871b6 100644 --- a/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java +++ b/app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java @@ -101,6 +101,7 @@ public void onBindView(Bundle savedInstanceState) { // setNotificationBarBackgroundColor(CustomColor.blue); setStatusBarTranslucent(); + //鍒濆鍖栫鐗� initFragment(savedInstanceState); //鍒濆鍖� @@ -568,6 +569,7 @@ if (info != null) { MqttRecvClient.getInstance().setConnectParam(info.getUrl(), info.getClientId(), info.getUserName(), info.getPassWord()); MqttRecvClient.getInstance().connect(); + HdlLogLogic.print("mqtt閾炬帴鎴愬姛--->ClientId--->" + info.getClientId(), true); } } @@ -658,12 +660,13 @@ } }); } - } else if (event.getTopic().contains(ConstantManage.station_status)) { - currentFragmentIndex = 1; - bottomViewChangeOfStyle(); - showFragment(); - HdlCommonLogic.getInstance().postEventBusSticky(ConstantManage.homepage_title_tab_switch, event.getType()); - + } else if (event.getTopic().contains(ConstantManage.homepage_title_tab_switch)) { + if (event.getType().contains(ConstantManage.station_page)) { + //浠庨椤垫寚瀹氱數绔欑姸鎬佹墦寮�鐢电珯鐣岄潰 + currentFragmentIndex = 1; + bottomViewChangeOfStyle(); + showFragment(); + } } } -- Gitblit v1.8.0