From fa8d3532e56d6d47547d7c4540da6fdd56f63564 Mon Sep 17 00:00:00 2001 From: Marcella Souza Date: Tue, 22 Dec 2020 14:52:42 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20[DSY-000]=20Fix=20Natura?= =?UTF-8?q?=20Theme=20old=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/natura/android/sample/data/ThemeRepository.kt | 2 +- .../com/natura/android/sample/data/ThemeRepositoryTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/src/main/kotlin/com/natura/android/sample/data/ThemeRepository.kt b/sample/src/main/kotlin/com/natura/android/sample/data/ThemeRepository.kt index 18eb8e019..2a7825251 100644 --- a/sample/src/main/kotlin/com/natura/android/sample/data/ThemeRepository.kt +++ b/sample/src/main/kotlin/com/natura/android/sample/data/ThemeRepository.kt @@ -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 } diff --git a/sample/src/test/kotlin/com/natura/android/sample/data/ThemeRepositoryTest.kt b/sample/src/test/kotlin/com/natura/android/sample/data/ThemeRepositoryTest.kt index c531bdb25..6753c308e 100644 --- a/sample/src/test/kotlin/com/natura/android/sample/data/ThemeRepositoryTest.kt +++ b/sample/src/test/kotlin/com/natura/android/sample/data/ThemeRepositoryTest.kt @@ -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