summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpiritCroc <dev@spiritcroc.de>2018-10-09 15:45:30 +0200
committerSpiritCroc <dev@spiritcroc.de>2018-10-09 15:46:03 +0200
commit5ba7b393ec7ce29bec93caeccc2601ef76826613 (patch)
tree6b2e1b95ae11bbc54abafa243dcac00e1ab1d206
parentc0947137b233da6764acbb7cc470795368c7b47b (diff)
AE theme: Add possibility to force device defaultp9.0-los
For people who use (rather dark) themes without AE support Change-Id: I93a3a6635f0cd228ef4769f5f573e8d7d4485723
-rw-r--r--res/values/arrays.xml2
-rw-r--r--res/values/strings.xml5
-rw-r--r--src/com/aicp/extras/BaseActivity.java2
3 files changed, 7 insertions, 2 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index baea0f59e..00790b4d6 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -21,6 +21,7 @@
<string-array name="theme_entries" translatable="false">
<item>@string/theme_default</item>
+ <item>@string/theme_default_force</item>
<item>@string/theme_default_more_accent</item>
<item>@string/theme_light</item>
<item>@string/theme_light_more_accent</item>
@@ -30,6 +31,7 @@
<string-array name="theme_values" translatable="false">
<item>0</item>
+ <item>7</item>
<item>6</item>
<!-- 1 was dark amber, not re-using value to not misinterpret previous user setting -->
<item>2</item>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 7c01ee1a9..bf72dfa55 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -227,7 +227,8 @@
<string name="ae_settings_summary">Customize the look and behaviour of Aicp Extras</string>
<string name="theme_title">Theme</string>
- <string name="theme_default">Default settings theme</string>
+ <string name="theme_default">Automatic</string>
+ <string name="theme_default_force">Default settings theme</string>
<string name="theme_default_more_accent">More color</string>
<string name="theme_light">Light</string>
<string name="theme_light_more_accent">Light with more color</string>
@@ -381,4 +382,4 @@
<!-- Disable FC notifications -->
<!-- Circle app bar -->
<!--OmniGesture-->
- </resources> \ No newline at end of file
+ </resources>
diff --git a/src/com/aicp/extras/BaseActivity.java b/src/com/aicp/extras/BaseActivity.java
index aef491d5c..06e721436 100644
--- a/src/com/aicp/extras/BaseActivity.java
+++ b/src/com/aicp/extras/BaseActivity.java
@@ -62,6 +62,8 @@ public abstract class BaseActivity extends Activity {
return R.style.AppTheme_Light_MoreAccent;
case 5:
return R.style.AppTheme_Dark_MoreAccent;
+ case 7:
+ return R.style.AppTheme;
default:
{
// Decide on whether to use a light or dark theme by judging devicedefault