mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
574 B
Kotlin
18 lines
574 B
Kotlin
package org.tasks.injection
|
|
|
|
import android.os.Bundle
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import org.tasks.themes.Theme
|
|
import org.tasks.themes.ThemeColor
|
|
import javax.inject.Inject
|
|
|
|
abstract class ThemedInjectingAppCompatActivity protected constructor() : AppCompatActivity() {
|
|
@Inject lateinit var tasksTheme: Theme
|
|
@Inject protected lateinit var themeColor: ThemeColor
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
tasksTheme.applyThemeAndStatusBarColor(this)
|
|
title = null
|
|
}
|
|
} |