|
|
package com.br_technology.securitytrain_master.ui
|
|
|
|
|
|
import android.content.Intent
|
|
|
import android.os.Build
|
|
|
import android.os.Bundle
|
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
|
import com.br_technology.securitytrain_master.ui.login.AccountLoginActivity
|
|
|
import com.gyf.immersionbar.ImmersionBar
|
|
|
import io.reactivex.rxjava3.core.Observable
|
|
|
import java.util.concurrent.TimeUnit
|
|
|
|
|
|
/**
|
|
|
* Time: 7/26/2021 10:11
|
|
|
* Author: Captain
|
|
|
* Description: 初见时你很迷人
|
|
|
*/
|
|
|
class SplashActivity {
|
|
|
class SplashActivity : AppCompatActivity() {
|
|
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
|
ImmersionBar.with(this).navigationBarColor(android.R.color.transparent).init()
|
|
|
}
|
|
|
super.onCreate(savedInstanceState)
|
|
|
Observable.timer(1, TimeUnit.SECONDS)
|
|
|
.subscribe {
|
|
|
val intent = Intent(this, AccountLoginActivity::class.java)
|
|
|
startActivity(intent)
|
|
|
finish()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|