From b01d34b480389b59b6cc77301a1cd54048867195 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 28 五月 2024 14:53:29 +0800
Subject: [PATCH] 2024年05月28日14:53:17

---
 app/src/main/java/com/hdl/photovoltaic/ui/home/HomePageFragment.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/home/HomePageFragment.java b/app/src/main/java/com/hdl/photovoltaic/ui/home/HomePageFragment.java
index aee1ac9..5e19164 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/home/HomePageFragment.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/home/HomePageFragment.java
@@ -79,7 +79,6 @@
 
     @Override
     public void onBindView(Bundle savedInstanceState) {
-        LReceiveAndSend.Start(_mActivity);
         //鍒濆鍖�
         initView();
         //鍒濆鍖栫晫闈㈢洃鍚櫒
@@ -160,7 +159,7 @@
                     return;
                 }
                 timeType = TimeType.day;
-
+                viewBinding.unitTextTv.setText(getString(R.string.pv_power));
                 viewBinding.dayTv.setBackground(AppCompatResources.getDrawable(_mActivity, R.drawable.time_selected_38c494));
                 viewBinding.dayTv.setTextColor(_mActivity.getColor(R.color.text_38C494));
 
@@ -193,6 +192,7 @@
                     return;
                 }
                 timeType = TimeType.month;
+                viewBinding.unitTextTv.setText(getString(R.string.generation));
                 viewBinding.dayTv.setBackground(AppCompatResources.getDrawable(_mActivity, R.color.text_00000000));
                 viewBinding.dayTv.setTextColor(_mActivity.getColor(R.color.text_66000000));
 
@@ -225,6 +225,7 @@
                     return;
                 }
                 timeType = TimeType.year;
+                viewBinding.unitTextTv.setText(getString(R.string.generation));
                 viewBinding.dayTv.setBackground(AppCompatResources.getDrawable(_mActivity, R.color.text_00000000));
                 viewBinding.dayTv.setTextColor(_mActivity.getColor(R.color.text_66000000));
 
@@ -255,6 +256,7 @@
                     return;
                 }
                 timeType = TimeType.all;
+                viewBinding.unitTextTv.setText(getString(R.string.generation));
                 viewBinding.dayTv.setBackground(AppCompatResources.getDrawable(_mActivity, R.color.text_00000000));
                 viewBinding.dayTv.setTextColor(_mActivity.getColor(R.color.text_66000000));
 
@@ -391,7 +393,7 @@
         if (TimeType.day.equals(timeType)) {
             aaChartModel = BasicChartComposer.configureAreaChart(getString(R.string.pv_power), fieldNames, fieldValues);
         } else if (TimeType.month.equals(timeType) || TimeType.year.equals(timeType) || TimeType.all.equals(timeType)) {
-            aaChartModel = configureColorfulColumnChart(getString(R.string.pv_power), fieldNames, fieldValues);
+            aaChartModel = configureColorfulColumnChart(getString(R.string.generation), fieldNames, fieldValues);
         }
         aaChartView.aa_drawChartWithChartModel(aaChartModel);
 

--
Gitblit v1.8.0