riku
2022-01-20 5a0fff8095cd5356f57c181b7e7b820e0f7efacf
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()
    }
}