mac
2024-09-06 30dd2bff4bcb91be35c058bcd84a3049b7ee35ff
app/src/main/java/com/hdl/photovoltaic/ui/BPowerStationActivity.java
@@ -33,7 +33,6 @@
import com.hdl.photovoltaic.enums.HomepageTitleTabSwitch;
import com.hdl.photovoltaic.enums.LowerTagType;
import com.hdl.photovoltaic.enums.NetworkType;
import com.hdl.photovoltaic.enums.PowerStationStatusType;
import com.hdl.photovoltaic.listener.CloudCallBeak;
import com.hdl.photovoltaic.other.HdlCommonLogic;
import com.hdl.photovoltaic.other.HdlDeviceLogic;
@@ -67,7 +66,6 @@
import com.hdl.sdk.link.core.connect.HDLUdpConnect;
import com.hdl.sdk.link.core.utils.mqtt.MqttRecvClient;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
@@ -367,7 +365,7 @@
    }
    private void initView() {
        viewBinding.myPowerStationBottomIl0.titleTv.setText(R.string.summarize);
        viewBinding.myPowerStationBottomIl0.titleTv.setText(R.string.power_home_page);
        viewBinding.myPowerStationBottomIl1.titleTv.setText(R.string.power_station);
        viewBinding.myMessageBottomIl2.titleTv.setText(R.string.message);
        viewBinding.myMeBottomIl3.titleTv.setText(R.string.power_station_me);
@@ -660,12 +658,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();
            }
        }
    }