Messaging: Use a DayNight launch theme

This prevents the white launch screen from appearing when the system theme
is dark

Change-Id: I861f9e5a58b4bb52385c75459fc4de73532d15a8
This commit is contained in:
Scott Warner
2020-06-24 15:08:01 -04:00
committed by Michael Bestas
parent 2970e7d0be
commit 657e0460fe
3 changed files with 7 additions and 1 deletions

View File

@@ -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" />

View File

@@ -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>

View File

@@ -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();