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:
@@ -54,7 +54,7 @@ class AccentFragment : BaseFragment() {
|
|||||||
private lateinit var B: FragmentOnboardingAccentBinding
|
private lateinit var B: FragmentOnboardingAccentBinding
|
||||||
|
|
||||||
private var themeId: Int = 0
|
private var themeId: Int = 0
|
||||||
private var accentId: Int = 0
|
private var accentId: Int = 1
|
||||||
|
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
inflater: LayoutInflater,
|
inflater: LayoutInflater,
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ class OnboardingActivity : BaseActivity() {
|
|||||||
|
|
||||||
/*Customization*/
|
/*Customization*/
|
||||||
save(PREFERENCE_THEME_TYPE, 0)
|
save(PREFERENCE_THEME_TYPE, 0)
|
||||||
save(PREFERENCE_THEME_ACCENT, 0)
|
save(PREFERENCE_THEME_ACCENT, 1)
|
||||||
save(PREFERENCE_DEFAULT_SELECTED_TAB, 0)
|
save(PREFERENCE_DEFAULT_SELECTED_TAB, 0)
|
||||||
save(PREFERENCE_QUICK_EXIT, false)
|
save(PREFERENCE_QUICK_EXIT, false)
|
||||||
save(PREFERENCE_FOR_YOU, true)
|
save(PREFERENCE_FOR_YOU, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user