2020-04-09 17:31:13 +00:00
|
|
|
package com.vanced.manager.ui.core
|
2020-03-28 13:29:48 +00:00
|
|
|
|
|
|
|
import android.content.Intent
|
2020-04-03 16:40:54 +00:00
|
|
|
import android.os.Bundle
|
|
|
|
import androidx.appcompat.app.AppCompatActivity
|
2020-10-31 19:45:39 +00:00
|
|
|
import androidx.preference.PreferenceManager.getDefaultSharedPreferences
|
2020-12-13 11:54:52 +00:00
|
|
|
import com.vanced.manager.R
|
2020-04-03 16:40:54 +00:00
|
|
|
import com.vanced.manager.ui.MainActivity
|
2020-10-31 19:45:39 +00:00
|
|
|
import com.vanced.manager.ui.WelcomeActivity
|
2020-03-28 13:29:48 +00:00
|
|
|
|
|
|
|
class SplashScreenActivity : AppCompatActivity() {
|
|
|
|
|
2020-04-03 16:40:54 +00:00
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
2020-04-12 20:09:17 +00:00
|
|
|
super.onCreate(savedInstanceState)
|
|
|
|
|
2020-10-31 19:45:39 +00:00
|
|
|
if (getDefaultSharedPreferences(this).getBoolean("firstLaunch", true)) {
|
2020-12-13 11:54:52 +00:00
|
|
|
startActivity(Intent(this, WelcomeActivity::class.java))
|
2020-10-31 19:45:39 +00:00
|
|
|
finish()
|
|
|
|
} else {
|
2020-12-13 11:54:52 +00:00
|
|
|
startActivity(Intent(this, MainActivity::class.java))
|
2020-10-31 19:45:39 +00:00
|
|
|
finish()
|
|
|
|
}
|
|
|
|
|
2020-03-28 13:29:48 +00:00
|
|
|
}
|
|
|
|
}
|