forked from upstream-mirrors/quik
Use constructor injection for ViewModels
This commit is contained in:
@@ -40,7 +40,7 @@ import javax.inject.Inject
|
||||
* In most cases, this should be used instead of the base QkActivity, except for when
|
||||
* an activity does not depend on the theme
|
||||
*/
|
||||
abstract class QkThemedActivity<VM : QkViewModel<*, *>> : QkActivity<VM>() {
|
||||
abstract class QkThemedActivity : QkActivity() {
|
||||
|
||||
@Inject lateinit var colors: Colors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user