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