From 1897c4ad5fa73b3f0a36e1aa0e1e9000302a6ace Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 31 十月 2025 17:35:09 +0800
Subject: [PATCH] 2025.10.31 1. 新增巡查场景历史详情相关数据逻辑(待完成);

---
 app/src/main/java/cn/flightfeather/thirdappmodule/module/base/BaseActivity.kt |    4 ++--
 1 files changed, 2 insertions(+), 2 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..7f54b48 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,7 +40,7 @@
         } catch (e: Exception) {
             e.printStackTrace()
         }
-        setContentView(getLayoutId())
+        getLayoutId()?.let { setContentView(it) }
         rootView = findViewById<ViewGroup>(android.R.id.content).getChildAt(0) as ViewGroup
     }
 
@@ -62,7 +62,7 @@
     }
 
 
-    abstract fun getLayoutId(): Int
+    abstract fun getLayoutId(): Int?
 
     /**
      * 鎷撳睍activity涓嚜鍔ㄦ樉绀鸿蒋閿洏鐨勬柟娉�

--
Gitblit v1.9.3