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:
+1
-1
@@ -73,7 +73,7 @@
|
|||||||
android:screenOrientation="user"
|
android:screenOrientation="user"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:theme="@style/BugleTheme.ConversationListActivity">
|
android:theme="@style/LaunchTheme">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
|||||||
@@ -40,6 +40,11 @@
|
|||||||
<item name="apnPreferenceStyle">@style/ApnPreference</item>
|
<item name="apnPreferenceStyle">@style/ApnPreference</item>
|
||||||
</style>
|
</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"
|
<style name="BugleTheme.ConversationActivity"
|
||||||
parent="@style/BugleTheme.ConversationActivityBase">
|
parent="@style/BugleTheme.ConversationActivityBase">
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class ConversationListActivity extends AbstractConversationListActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(final Bundle savedInstanceState) {
|
protected void onCreate(final Bundle savedInstanceState) {
|
||||||
Trace.beginSection("ConversationListActivity.onCreate");
|
Trace.beginSection("ConversationListActivity.onCreate");
|
||||||
|
setTheme(R.style.BugleTheme_ConversationListActivity);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.conversation_list_activity);
|
setContentView(R.layout.conversation_list_activity);
|
||||||
Trace.endSection();
|
Trace.endSection();
|
||||||
|
|||||||
Reference in New Issue
Block a user