From d59d55575d913646b7a90fca651904ab889c6723 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 18 二月 2022 16:30:53 +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