forked from thijooree/android
fixbug that took user to empty dashboard without any accounts
This commit is contained in:
@@ -109,6 +109,9 @@ class OnboardingActivity : AppCompatActivity(), SecuritySetupFragment.Callback {
|
||||
|
||||
binding.btnGetStarted.setOnClickListener {
|
||||
prefs.edit().putBoolean("onboarding_done", true).apply()
|
||||
// Mark as unlocked so LoginActivity doesn't redirect to LockActivity.
|
||||
// The user just completed setup — they shouldn't have to re-authenticate immediately.
|
||||
(application as BasedBankApp).isUnlocked = true
|
||||
startActivity(Intent(this, LoginActivity::class.java))
|
||||
finish()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user