Skip to content

Commit

Permalink
refactor : intent 방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwoo-jo committed Mar 31, 2024
1 parent cdd9b70 commit 8418a6f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding, SplashViewModel>() {
override val viewModel: SplashViewModel by viewModel()

private var intentJob: Job? = null
private lateinit var intent: Intent
private var intent = OnboardingDepartActivity.createIntent(this@SplashActivity)

override fun initStartView() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
Expand All @@ -47,7 +47,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding, SplashViewModel>() {
if (viewModel.isFirstLaunch.value == true) {
permissionCheck()
} else {
val intent = MainActivity.createIntent(this@SplashActivity)
intent = MainActivity.createIntent(this@SplashActivity)
startActivity(intent)
finish()
}
Expand Down

0 comments on commit 8418a6f

Please sign in to comment.