Skip to content

Commit

Permalink
disables night mode
Browse files Browse the repository at this point in the history
  • Loading branch information
artwist-polyakov committed Feb 18, 2024
1 parent 3cfd2fe commit 1fdd037
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1fdd037

Please sign in to comment.