32 lines
867 B
Kotlin
32 lines
867 B
Kotlin
package com.pink.cute.wallpapers
|
|
|
|
import android.content.Intent
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import android.os.Bundle
|
|
import android.os.CountDownTimer
|
|
import android.view.LayoutInflater
|
|
import com.pink.cute.wallpapers.databinding.ActivityLaunBinding
|
|
|
|
|
|
class LaunActivity : AppCompatActivity() {
|
|
private lateinit var vb: ActivityLaunBinding
|
|
private var countDownTimer: CountDownTimer?= null
|
|
private var countDown = 10000L
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
vb = ActivityLaunBinding.inflate(LayoutInflater.from(this), null, false)
|
|
setContentView(vb.root)
|
|
|
|
startActivity(Intent(this@LaunActivity, MainActivity::class.java))
|
|
finish()
|
|
|
|
|
|
}
|
|
|
|
override fun onDestroy() {
|
|
super.onDestroy()
|
|
countDownTimer?.cancel()
|
|
}
|
|
|
|
|
|
} |