Enable dark mode by default

This commit is contained in:
Pierre HUBERT 2022-02-15 16:52:47 +01:00
parent dff43a806d
commit 4a308ab6fb
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@
.externalNativeBuild
.cxx
local.properties
.idea

View File

@ -2,10 +2,13 @@ package org.communiquons.dccaggregator
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatDelegate
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
}
}