diff --git a/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt b/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt
index 16e03e6be..f10c7047a 100644
--- a/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt
+++ b/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt
@@ -110,15 +110,11 @@ class MainActivity : AppCompatActivity() {
private var actionMode: ActionMode? = null
private var isReady = false
- /** @see android.app.Activity.onCreate
- */
override fun onCreate(savedInstanceState: Bundle?) {
- val splashScreen = installSplashScreen()
-
- splashScreen.setKeepOnScreenCondition { !isReady }
-
super.onCreate(savedInstanceState)
theme.themeBase.set(this)
+ val splashScreen = installSplashScreen()
+ splashScreen.setKeepOnScreenCondition { !isReady }
currentNightMode = nightMode
currentPro = inventory.hasPro
diff --git a/app/src/main/java/org/tasks/themes/Theme.kt b/app/src/main/java/org/tasks/themes/Theme.kt
index f2985255c..ac2256acc 100644
--- a/app/src/main/java/org/tasks/themes/Theme.kt
+++ b/app/src/main/java/org/tasks/themes/Theme.kt
@@ -1,17 +1,12 @@
package org.tasks.themes
import android.app.Activity
-import android.content.Context
-import android.view.LayoutInflater
import javax.inject.Inject
class Theme @Inject constructor(
val themeBase: ThemeBase,
val themeColor: ThemeColor,
) {
- fun getLayoutInflater(context: Context) =
- context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
-
fun applyThemeAndStatusBarColor(activity: Activity) {
applyTheme(activity)
themeColor.applyToNavigationBar(activity)
diff --git a/app/src/main/res/values/theme.xml b/app/src/main/res/values/theme.xml
index 71228bd37..e44794011 100644
--- a/app/src/main/res/values/theme.xml
+++ b/app/src/main/res/values/theme.xml
@@ -65,7 +65,6 @@
- @color/window_background
- @mipmap/ic_launcher_blue
- 300
- - @style/Tasks
\ No newline at end of file