summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Chum <nicholaschum@gmail.com>2015-05-03 17:16:21 +0800
committerClark Scheff <clark@cyngn.com>2015-05-07 18:08:47 +0000
commit3584a7ea4a71f92ce77f836a7db63cc6dc5024c4 (patch)
treeeed8c2f69503177d32a10d3602a49186fd4d8817
parentb5dd1e5019ff121cdc54ce60be406cbd37438e05 (diff)
downloadandroid_packages_apps_CellBroadcastReceiver-stable/cm-12.1-YOG3C.tar.gz
android_packages_apps_CellBroadcastReceiver-stable/cm-12.1-YOG3C.tar.bz2
android_packages_apps_CellBroadcastReceiver-stable/cm-12.1-YOG3C.zip
Expose hardcoded styles from manifest for themingstable/cm-12.1-YOG3C
This allows for CellBroadcastReceiver's main menu to be themed. To open the main menu (not the Settings), go into AOSP Messaging, click the overflow menu then click Cell broadcasts. Verified working on Dark Material and BlissPop 03052015 build Change-Id: Ia2bf64de68c2332bae7467035828aa25f2e54e62 (cherry picked from commit fac61c46ccf37f8f4ac469d1a2e448d331ab1519)
-rw-r--r--AndroidManifest.xml4
-rw-r--r--res/values/styles.xml4
2 files changed, 6 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 1e34ffdf..faf0ff21 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -53,7 +53,7 @@
<activity android:name="CellBroadcastListActivity"
android:label="@string/app_label"
- android:theme="@android:style/Theme.Material.Light"
+ android:theme="@style/CellBroadcastTheme"
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask">
<intent-filter>
@@ -80,7 +80,7 @@
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection" />
<activity android:name="CellBroadcastAlertDialog"
- android:theme="@android:style/Theme.Material.Light.Dialog"
+ android:theme="@style/CellBroadcastDialogTheme"
android:launchMode="singleTask"
android:exported="false"
android:configChanges="orientation|keyboardHidden|keyboard|navigation" />
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 51b92e3c..4a251083 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -19,6 +19,10 @@
-->
<resources>
+ <!-- Exposed hardcoded themes from AndroidManifest, allowing it to be themeable. -->
+ <style name="CellBroadcastTheme" parent="android:Theme.Material.Light" />
+ <style name="CellBroadcastDialogTheme" parent="android:Theme.Material.Light.Dialog" />
+
<!-- This must be a fullscreen theme for the alarm to be able to turn the screen on. -->
<style name="AlertFullScreenTheme" parent="android:Theme.Material.Wallpaper.NoTitleBar" />