Skip to content

Commit

Permalink
fix: 🐛 [DSY-000] Fix Natura Theme old references
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcsouza committed Dec 22, 2020
1 parent 5e64081 commit fa8d353
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ThemeRepository(context: Context) {

fun getChosenThemeWithNoActionBar(): Int {
return when (sharedPreferences.getString("theme", "natura")) {
"natura" -> R.style.Theme_Natura_NoActionBar
"natura" -> R.style.Theme_Natura_Light_NoActionBar
"avon" -> R.style.Theme_Avon_Light_NoActionBar
else -> R.style.Theme_TheBodyShop_Light_NoActionBar
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ThemeRepositoryTest {

val savedTheme = themeRepository.getChosenThemeWithNoActionBar()

assertEquals(R.style.Theme_Natura_NoActionBar, savedTheme)
assertEquals(R.style.Theme_Natura_Light_NoActionBar, savedTheme)
}

@Test
Expand Down

0 comments on commit fa8d353

Please sign in to comment.