From e234a15b428267997c903a4ed42536c5d9f14a1f Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 10 十一月 2025 13:10:42 +0800
Subject: [PATCH] 2025.11.10 1. 新增巡查场景历史详情相关数据逻辑; 2. 新增工地施工阶段修改界面;

---
 app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt b/app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt
index 9b8234e..f9ca5da 100644
--- a/app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt
+++ b/app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt
@@ -40,8 +40,10 @@
         } catch (e: Exception) {
             e.printStackTrace()
         }
-        setContentView(getLayoutId())
-        rootView = findViewById<ViewGroup>(android.R.id.content).getChildAt(0) as ViewGroup
+        getLayoutId()?.let {
+            setContentView(it)
+            rootView = findViewById<ViewGroup>(android.R.id.content).getChildAt(0) as ViewGroup
+        }
     }
 
     override fun onDestroy() {
@@ -62,7 +64,7 @@
     }
 
 
-    abstract fun getLayoutId(): Int
+    abstract fun getLayoutId(): Int?
 
     /**
      * 鎷撳睍activity涓嚜鍔ㄦ樉绀鸿蒋閿洏鐨勬柟娉�

--
Gitblit v1.9.3