Save 1st theme during onboarding

There is no theme 0 which results in showing wrong accent preference
in customization settings if user doesn't selects a theme manually
during onboarding.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-04-29 14:41:36 +05:30
parent 9d978852ae
commit ad1a893d8b
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ class AccentFragment : BaseFragment() {
private lateinit var B: FragmentOnboardingAccentBinding
private var themeId: Int = 0
private var accentId: Int = 0
private var accentId: Int = 1
override fun onCreateView(
inflater: LayoutInflater,

View File

@@ -177,7 +177,7 @@ class OnboardingActivity : BaseActivity() {
/*Customization*/
save(PREFERENCE_THEME_TYPE, 0)
save(PREFERENCE_THEME_ACCENT, 0)
save(PREFERENCE_THEME_ACCENT, 1)
save(PREFERENCE_DEFAULT_SELECTED_TAB, 0)
save(PREFERENCE_QUICK_EXIT, false)
save(PREFERENCE_FOR_YOU, true)