riku
2022-02-18 d59d55575d913646b7a90fca651904ab889c6723
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
 * Date: 2021/7/29
 */
class DCSplashActivity : SplashActivity() {
 
    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()
    }
}