From 5a0fff8095cd5356f57c181b7e7b820e0f7efacf Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 20 一月 2022 16:00:14 +0800
Subject: [PATCH] 将项目拆分为两个子项目,监管和督察

---
 appDucha/src/main/java/com/flightfeather/ducha/module/DCSplashActivity.kt |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/appDucha/src/main/java/com/flightfeather/ducha/module/DCSplashActivity.kt b/appDucha/src/main/java/com/flightfeather/ducha/module/DCSplashActivity.kt
index da83089..d757940 100644
--- a/appDucha/src/main/java/com/flightfeather/ducha/module/DCSplashActivity.kt
+++ b/appDucha/src/main/java/com/flightfeather/ducha/module/DCSplashActivity.kt
@@ -1,8 +1,10 @@
 package com.flightfeather.ducha.module
 
+import android.content.Intent
 import android.os.Bundle
 import cn.flightfeather.thirdappmodule.activity.SplashActivity
 import com.flightfeather.ducha.R
+import com.flightfeather.ducha.module.login.DCLoginActivity
 
 /**
  * @author riku
@@ -10,8 +12,21 @@
  */
 class DCSplashActivity : SplashActivity() {
 
-    override fun onCreate(savedInstanceState: Bundle?) {
-        super.onCreate(savedInstanceState)
-        setContentView(R.layout.dc_activity_splash)
+    override fun getLayoutId(): Int {
+        return R.layout.dc_activity_splash
+    }
+
+    override fun startLogin() {
+        val intent = Intent(this, DCLoginActivity::class.java)
+        startActivity(intent)
+        val thread = Thread {
+            try {
+                Thread.sleep(500)
+                finish()
+            } catch (e: InterruptedException) {
+                e.printStackTrace()
+            }
+        }
+        thread.start()
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3