From 1fdd037e7bcc58f50139e6d4059ba9afb15bbd21 Mon Sep 17 00:00:00 2001 From: Aleksandr Poliakov Date: Sun, 18 Feb 2024 20:49:18 +0300 Subject: [PATCH] disables night mode --- .../java/app/cashadvisor/main/presentation/ui/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/cashadvisor/main/presentation/ui/MainActivity.kt b/app/src/main/java/app/cashadvisor/main/presentation/ui/MainActivity.kt index f3a2d1b5..601734cf 100644 --- a/app/src/main/java/app/cashadvisor/main/presentation/ui/MainActivity.kt +++ b/app/src/main/java/app/cashadvisor/main/presentation/ui/MainActivity.kt @@ -9,6 +9,7 @@ import android.view.WindowInsetsController import android.view.WindowManager import android.widget.Button import androidx.activity.viewModels +import androidx.appcompat.app.AppCompatDelegate import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.content.ContextCompat import androidx.lifecycle.lifecycleScope @@ -36,7 +37,7 @@ class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - + AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); Timber.tag("MainActivity").d("Debug log") Timber.tag("MainActivity").i("Info log") Timber.tag("MainActivity").w("Warning log")