diff options
author | Allan Wang <me@allanwang.ca> | 2021-04-17 17:49:18 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-04-17 17:49:18 -0700 |
commit | d96d1d06a7c1581b97c042f2a74e7cd5b1c2546e (patch) | |
tree | 60ad049189d448132d1b99ea041a8f80a83ffe22 /app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt | |
parent | cb2adc75d8e105adfdf0d5646c1a9b6d39c292f8 (diff) | |
download | frost-d96d1d06a7c1581b97c042f2a74e7cd5b1c2546e.tar.gz frost-d96d1d06a7c1581b97c042f2a74e7cd5b1c2546e.tar.bz2 frost-d96d1d06a7c1581b97c042f2a74e7cd5b1c2546e.zip |
Update theme providers and readd koin modules
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt b/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt index 486b09a9..662c44e5 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/intro/IntroFragmentTheme.kt @@ -64,7 +64,7 @@ class IntroFragmentTheme : BaseIntroFragment(R.layout.intro_theme) { private fun View.setThemeClick(theme: Theme) { setOnClickListener { v -> - prefs.theme = theme.ordinal + themeProvider.setTheme(theme.ordinal) (activity as IntroActivity).apply { binding.ripple.ripple(themeProvider.bgColor, v.x + v.pivotX, v.y + v.pivotY) theme() |