Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3334d702 authored by Scott Warner's avatar Scott Warner Committed by Michael Bestas
Browse files

Dialer: Use a DayNight launch theme

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

Change-Id: I1ee8ff493910578b5e5c9de67ea1f7390178051a
parent 7257c0ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
        android:label="@string/main_activity_label"
        android:launchMode="singleTask"
        android:resizeableActivity="true"
        android:theme="@style/MainActivityTheme"
        android:theme="@style/LaunchTheme"
        android:windowSoftInputMode="stateAlwaysHidden|adjustNothing">

      <intent-filter>
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import com.android.dialer.interactions.PhoneNumberInteraction.InteractionErrorCo
import com.android.dialer.interactions.PhoneNumberInteraction.InteractionErrorListener;
import com.android.dialer.main.MainActivityPeer;
import com.android.dialer.main.impl.bottomnav.BottomNavBar.TabIndex;
import com.android.dialer.R;
import com.android.dialer.util.TransactionSafeActivity;

/** This is the main activity for dialer. It hosts favorites, call log, search, dialpad, etc... */
@@ -72,6 +73,7 @@ public class MainActivity extends TransactionSafeActivity

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    setTheme(R.style.MainActivityTheme);
    super.onCreate(savedInstanceState);
    LogUtil.enterBlock("MainActivity.onCreate");
    // If peer was set by the super, don't reset it.
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,11 @@
  -->
<resources>

  <style name="LaunchTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
    <item name="android:colorPrimary">@color/dialer_theme_color</item>
    <item name="colorPrimary">@color/dialer_theme_color</item>
  </style>

  <!-- Activities should use this theme as their style -->
  <style name="MainActivityTheme" parent="MainActivityThemeBase"/>