summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Warner <Tortel1210@gmail.com>2020-06-24 15:08:01 -0400
committerMichael Bestas <mkbestas@lineageos.org>2022-08-28 03:47:11 +0300
commit0f44a3609af8aea0a478f6e8ee33db8100e56c61 (patch)
treecd36f68924c29f571e4fceb1569bc2121a5a6ddc
parente7a8e7c8a40deef4df96a621cdfa236a14906f1b (diff)
Messaging: Use a DayNight launch theme
This prevents the white launch screen from appearing when the system theme is dark Change-Id: I861f9e5a58b4bb52385c75459fc4de73532d15a8
-rw-r--r--AndroidManifest.xml2
-rw-r--r--res/values/styles.xml5
-rw-r--r--src/com/android/messaging/ui/conversationlist/ConversationListActivity.java1
3 files changed, 7 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0bdbbbb..3c7b4db 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -73,7 +73,7 @@
android:screenOrientation="user"
android:label="@string/app_name"
android:exported="true"
- android:theme="@style/BugleTheme.ConversationListActivity">
+ android:theme="@style/LaunchTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 9bd338f..c355558 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -40,6 +40,11 @@
<item name="apnPreferenceStyle">@style/ApnPreference</item>
</style>
+ <style name="LaunchTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
+ <item name="colorPrimary">@color/action_bar_background_color</item>
+ <item name="colorPrimaryDark">@color/action_bar_background_color_dark</item>
+ </style>
+
<style name="BugleTheme.ConversationActivity"
parent="@style/BugleTheme.ConversationActivityBase">
</style>
diff --git a/src/com/android/messaging/ui/conversationlist/ConversationListActivity.java b/src/com/android/messaging/ui/conversationlist/ConversationListActivity.java
index 636b0f5..4d83f12 100644
--- a/src/com/android/messaging/ui/conversationlist/ConversationListActivity.java
+++ b/src/com/android/messaging/ui/conversationlist/ConversationListActivity.java
@@ -31,6 +31,7 @@ public class ConversationListActivity extends AbstractConversationListActivity {
@Override
protected void onCreate(final Bundle savedInstanceState) {
Trace.beginSection("ConversationListActivity.onCreate");
+ setTheme(R.style.BugleTheme_ConversationListActivity);
super.onCreate(savedInstanceState);
setContentView(R.layout.conversation_list_activity);
Trace.endSection();