From 1863007fd5fc407af48a27c47362e0b1345b668a Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 23 十二月 2024 20:51:33 +0800
Subject: [PATCH] (修改新主题)2024年12月23日20:51:09

---
 app/src/main/java/com/hdl/photovoltaic/uni/BSplashView.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/uni/BSplashView.java b/app/src/main/java/com/hdl/photovoltaic/uni/BSplashView.java
index efbe732..1dae918 100755
--- a/app/src/main/java/com/hdl/photovoltaic/uni/BSplashView.java
+++ b/app/src/main/java/com/hdl/photovoltaic/uni/BSplashView.java
@@ -2,6 +2,7 @@
 
 import android.app.Activity;
 import android.content.Context;
+import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
@@ -22,15 +23,18 @@
         // 閫氳繃inflate鏂规硶灏嗗竷灞�鏂囦欢杞崲涓篤iew瀵硅薄
         splashView = inflater.inflate(R.layout.activity_b_splash, null);
         try {
-            int colorInt = HDLApp.getInstance().getColor(R.color.text_FF161616);
-            if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 1) {
-                colorInt = HDLApp.getInstance().getColor(R.color.text_FF161616);
-            } else if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 2) {
-                colorInt = HDLApp.getInstance().getColor(R.color.text_FF161616);
-            }
             //璁剧疆瀵艰埅鏉¤儗鏅鑹�
-            Activity activity = (Activity) context;
-            activity.getWindow().setNavigationBarColor(colorInt);
+            if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 0) {
+                Activity activity = (Activity) context;
+                activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF1C1C1E));
+            } else if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 1) {
+                Activity activity = (Activity) context;
+                activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF000000));
+
+            } else if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 2) {
+                Activity activity = (Activity) context;
+                activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF000000));
+            }
         } catch (Exception ignored) {
         }
         return splashView;

--
Gitblit v1.8.0