Aperture: Set enforceNavigationBarContrast programmatically

Change-Id: Ic06a9c28a1d975f0167f7db6c1bd99577a373323
diff --git a/app/src/main/java/org/lineageos/aperture/SettingsActivity.kt b/app/src/main/java/org/lineageos/aperture/SettingsActivity.kt
index 16177cc..ef2e6b6 100644
--- a/app/src/main/java/org/lineageos/aperture/SettingsActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/SettingsActivity.kt
@@ -10,6 +10,7 @@
 import android.content.pm.PackageManager
 import android.graphics.Color
 import android.graphics.drawable.ColorDrawable
+import android.os.Build
 import android.os.Bundle
 import android.view.MenuItem
 import android.view.View
@@ -39,6 +40,10 @@
             setDisplayHomeAsUpEnabled(true)
             setDisplayShowHomeEnabled(true)
         }
+
+        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
+            window.isNavigationBarContrastEnforced = true
+        }
     }
 
     override fun onOptionsItemSelected(item: MenuItem) = when (item.itemId) {
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index d21c4ea..f0e548e 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -34,7 +34,6 @@
         <item name="android:statusBarColor">?android:attr/colorBackground</item>
 
         <item name="android:navigationBarColor">@android:color/transparent</item>
-        <item name="android:enforceNavigationBarContrast">false</item>
     </style>
 
     <!-- Settings switch theme. -->