From a91da1a664d0036c1d7f126a11b397e4239f257d Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 05 三月 2025 16:51:07 +0800
Subject: [PATCH] 2025年03月05日16:51:04
---
app/src/main/java/com/hdl/photovoltaic/widget/DefaultFilteringDialog.java | 30 ++++++++++++++++++++----------
1 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/widget/DefaultFilteringDialog.java b/app/src/main/java/com/hdl/photovoltaic/widget/DefaultFilteringDialog.java
index 77e8617..6dc1b55 100644
--- a/app/src/main/java/com/hdl/photovoltaic/widget/DefaultFilteringDialog.java
+++ b/app/src/main/java/com/hdl/photovoltaic/widget/DefaultFilteringDialog.java
@@ -315,16 +315,26 @@
break;
}
}
- if (TextUtils.isEmpty(DebugStatus.All)) {
- setBackgroundColor(viewBinding.allTv, TitleType.debuggingState);
- } else if (stateValue.equals(DebugStatus.Debugging)) {
- setBackgroundColor(viewBinding.beDebuggingTv, TitleType.debuggingState);
- } else if (stateValue.equals(DebugStatus.WAIT_DELIVERED)) {
- setBackgroundColor(viewBinding.debuggingcOmpletedTv, TitleType.debuggingState);
- } else if (stateValue.equals(DebugStatus.Delivered)) {
- setBackgroundColor(viewBinding.deliveredTv, TitleType.debuggingState);
- } else if (stateValue.equals(DebugStatus.SECONDARY_DEBUGGIN)) {
- setBackgroundColor(viewBinding.authorizationDebuggingTv, TitleType.debuggingState);
+ switch (stateValue) {
+ case DebugStatus.All:
+ setBackgroundColor(viewBinding.allTv, TitleType.debuggingState);
+ break;
+ case DebugStatus.Debugging:
+ setBackgroundColor(viewBinding.beDebuggingTv, TitleType.debuggingState);
+ break;
+ case DebugStatus.WAIT_DELIVERED:
+ setBackgroundColor(viewBinding.debuggingcOmpletedTv, TitleType.debuggingState);
+ break;
+ case DebugStatus.Delivered:
+ setBackgroundColor(viewBinding.deliveredTv, TitleType.debuggingState);
+ break;
+ case DebugStatus.SECONDARY_DEBUGGIN:
+ setBackgroundColor(viewBinding.authorizationDebuggingTv, TitleType.debuggingState);
+ break;
+ default: {
+ setBackgroundColor(viewBinding.allTv, TitleType.debuggingState);
+ break;
+ }
}
} catch (Exception ignored) {
}
--
Gitblit v1.8.0