Enable forward button on 4th screen

!175 added a new check to enable forward button that broke
4th screen after !147 was merged. This check enables the 4th
button that has special handling.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-04-11 13:12:46 +08:00
parent a6d9f95619
commit 56c142bf9e

View File

@@ -139,6 +139,7 @@ class OnboardingActivity : BaseActivity() {
B.btnForward.isEnabled = lastPosition != 4
if (lastPosition == 4) {
B.btnForward.text = getString(R.string.action_finish)
B.btnForward.isEnabled = true
B.btnForward.setOnClickListener {
save(PREFERENCE_INTRO, true)
open(SplashActivity::class.java, true)
@@ -207,4 +208,4 @@ class OnboardingActivity : BaseActivity() {
return 5
}
}
}
}