summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Xu <fionaxu@google.com>2020-07-12 15:30:36 -0700
committerChen Xu <fionaxu@google.com>2020-07-12 22:36:59 +0000
commit0cd936d517f2f1e55733db015be5890dfe18def7 (patch)
tree38ac2641bca85c9bab6814231ffa907408abfa30
parent0f6ca3006d66b81b872f3574efb6c9760f933803 (diff)
downloadplatform_packages_apps_CellBroadcastReceiver-android11-dev.tar.gz
platform_packages_apps_CellBroadcastReceiver-android11-dev.tar.bz2
platform_packages_apps_CellBroadcastReceiver-android11-dev.zip
support cellbroadcast alert theme customizationandroid11-dev
Bug: 160303586 Test: manaul test through rro app Change-Id: I3e562a581fea6f03aa9e9b01258f1b86dc47e108
-rw-r--r--AndroidManifest.xml2
-rw-r--r--res/values/overlayable.xml2
-rw-r--r--res/values/themes.xml3
3 files changed, 3 insertions, 4 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 3911fe226..d3c6ebe8c 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -108,7 +108,7 @@
android:exported="true" />
<activity android:name="com.android.cellbroadcastreceiver.CellBroadcastAlertDialog"
- android:theme="@android:style/Theme.DeviceDefault.Light.Dialog"
+ android:theme="@style/CellBroadcastAlertTheme"
android:launchMode="singleTask"
android:exported="false"
android:excludeFromRecents="true"
diff --git a/res/values/overlayable.xml b/res/values/overlayable.xml
index 86401879b..b1be57b66 100644
--- a/res/values/overlayable.xml
+++ b/res/values/overlayable.xml
@@ -22,7 +22,7 @@
<!-- START VENDOR CUSTOMIZATION -->
<policy type="product|system|vendor">
<!-- START THEME / STYLE -->
- <item type="style" name="AlertFullScreenTheme"/>
+ <item type="style" name="CellBroadcastAlertTheme"/>
<item type="style" name="PreferenceTheme"/>
<item type="style" name="CellBroadcastSettingsTheme"/>
<!-- END THEME / STYLE -->
diff --git a/res/values/themes.xml b/res/values/themes.xml
index 3ec1ce1ca..2028aa597 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -19,8 +19,7 @@
-->
<resources>
- <!-- 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" />
+ <style name="CellBroadcastAlertTheme" parent="android:Theme.DeviceDefault.Light.Dialog" />
<style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.v14.Material">
<item name="switchPreferenceStyle">@style/SettingsSwitchPreference</item>