From 78dbac2e8e7ad58d9e5d6a025de0d6fc58f69146 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 21 十二月 2023 21:17:15 +0800 Subject: [PATCH] 2023年12月21日21:17:08 --- app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java b/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java index 634d792..0bc1f2a 100644 --- a/app/src/main/java/com/hdl/photovoltaic/ui/MyPowerStationActivity.java +++ b/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(); //鍒濆鍖杕qtt瀹㈡埛绔� 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); } } -- Gitblit v1.8.0