From 079ffca0ba5a9ac9da192b278ee4403c6a8dbe2a Mon Sep 17 00:00:00 2001 From: yeoncheong Date: Fri, 21 Jul 2023 16:06:39 +0900 Subject: [PATCH] =?UTF-8?q?[Chore/#98]=20=EB=8B=A4=ED=81=AC=EB=AA=A8?= =?UTF-8?q?=EB=93=9C=20=ED=95=A8=EC=88=98=EB=A1=9C=20=EB=B9=BC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/sopt/umbba_android/application/UmbbaApplication.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/sopt/umbba_android/application/UmbbaApplication.kt b/app/src/main/java/com/sopt/umbba_android/application/UmbbaApplication.kt index e5bcad97..ac3e80e5 100644 --- a/app/src/main/java/com/sopt/umbba_android/application/UmbbaApplication.kt +++ b/app/src/main/java/com/sopt/umbba_android/application/UmbbaApplication.kt @@ -9,9 +9,9 @@ import com.sopt.umbba_android.data.local.SharedPreferences class UmbbaApplication: Application() { override fun onCreate() { super.onCreate() - AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) initKakao() setupSharedPreferences() + stopDarkMode() } private fun initKakao() { @@ -21,4 +21,8 @@ class UmbbaApplication: Application() { private fun setupSharedPreferences() { SharedPreferences.init(this) } + + private fun stopDarkMode() { + AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) + } } \ No newline at end of file