Skip to content

Commit

Permalink
[Chore/#98] 다크모드 함수로 빼기
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoncheong committed Jul 21, 2023
1 parent a650524 commit 079ffca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -21,4 +21,8 @@ class UmbbaApplication: Application() {
private fun setupSharedPreferences() {
SharedPreferences.init(this)
}

private fun stopDarkMode() {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
}
}

0 comments on commit 079ffca

Please sign in to comment.