File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
java/com/apochromat/codeblockmobile Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import android.os.Looper
88import android.view.Menu
99import android.view.MenuItem
1010import android.widget.Toast
11+ import androidx.appcompat.app.AppCompatDelegate
1112import androidx.core.view.GravityCompat
1213import androidx.recyclerview.widget.ItemTouchHelper
1314import androidx.recyclerview.widget.LinearLayoutManager
@@ -34,6 +35,7 @@ class ProjectActivity : AppCompatActivity() {
3435 }
3536
3637 override fun onCreate (savedInstanceState : Bundle ? ) {
38+ AppCompatDelegate .setDefaultNightMode(AppCompatDelegate .MODE_NIGHT_NO )
3739 super .onCreate(savedInstanceState)
3840 bindingClass = ActivityProjectBinding .inflate(layoutInflater)
3941 setContentView(bindingClass.root)
Original file line number Diff line number Diff line change 11<resources xmlns : tools =" http://schemas.android.com/tools" >
22 <!-- Base application theme. -->
33 <style name =" Theme.CodeblockMobile" parent =" Theme.MaterialComponents.DayNight.DarkActionBar" >
4+
5+ <item name =" android:forceDarkAllowed" tools : targetApi =" q" >false</item >
46 <!-- Primary brand color. -->
57 <item name =" colorPrimary" >@color/dark_blue</item >
68 <item name =" colorPrimaryVariant" >@color/dark_blue</item >
1416 <!-- Customize your theme here. -->
1517 </style >
1618 <style name =" Theme.CodeblockMobile.NoActionBar" >
19+ <item name =" android:forceDarkAllowed" tools : targetApi =" q" >false</item >
1720 <item name =" windowActionBar" >false</item >
1821 <item name =" windowNoTitle" >true</item >
1922 <item name =" android:windowFullscreen" >true</item >
You can’t perform that action at this time.
0 commit comments