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()
|
}
|
}
|