mac
2023-12-21 78dbac2e8e7ad58d9e5d6a025de0d6fc58f69146
app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java
@@ -4,8 +4,11 @@
import androidx.appcompat.content.res.AppCompatResources;
import android.Manifest;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Process;
import android.text.TextUtils;
import android.view.View;
@@ -47,7 +50,6 @@
import java.util.List;
/**
 * 我的电站界面
 */
@@ -78,6 +80,18 @@
        registerAllTopicsListener();
        //初始化mqtt客户端
        initMqttClient();
//        HdlOtaLogic.getInstance().startLocalService(new ServiceConnection() {
//            @Override
//            public void onServiceConnected(ComponentName name, IBinder service) {
//
//            }
//
//            @Override
//            public void onServiceDisconnected(ComponentName name) {
//
//            }
//        });
    }
@@ -120,7 +134,7 @@
    }
    private void initView() {
        viewBinding.myPowerStationBottomIl1.titleTv.setText(R.string.power_station);
        viewBinding.myPowerStationBottomIl1.titleTv.setText("首页");//
        viewBinding.myMessageBottomIl2.titleTv.setText(R.string.message);
        viewBinding.myMeBottomIl3.titleTv.setText(R.string.power_station_me);
        this.bottomViewChangeOfStyle();
@@ -250,7 +264,7 @@
                        uniCallBackBaseBean.setType(linkResponse.getTopic());
                        uniCallBackBaseBean.setData(linkResponse.getData());
                        HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_REPLY_OTA_MODEL, uniCallBackBaseBean);
                        HdlLogLogic.print( linkResponse.getTopic() +  new Gson().toJson(linkResponse.getData()), true);
                        HdlLogLogic.print(linkResponse.getTopic() + new Gson().toJson(linkResponse.getData()), true);
                    }
                }
            }
@@ -327,7 +341,7 @@
            uniCallBackBaseBean.setType(event.getType());
            uniCallBackBaseBean.setData(event.getData());
            HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_REPLY_OTA_MODEL, uniCallBackBaseBean);
            HdlLogLogic.print(  event.getTopic()  + new Gson().toJson(event.getData()), true);
            HdlLogLogic.print(event.getTopic() + new Gson().toJson(event.getData()), true);
        }
    }