Skip to content

Commit 315896b

Browse files
Remove unnecessary comment in RoomAndCoroutinesActivity.kt
1 parent 1206553 commit 315896b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase8/RoomAndCoroutinesActivity.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ class RoomAndCoroutinesActivity : BaseActivity() {
2929
super.onCreate(savedInstanceState)
3030
setContentView(binding.root)
3131

32-
// ugly setter injection of the database
33-
// could be improved to use constructor injection by using ViewModelFactory
34-
/*viewModel.database =
35-
AndroidVersionDatabase.getInstance(applicationContext).androidVersionDao()*/
3632
viewModel.uiState().observe(this, Observer { uiState ->
3733
if (uiState != null) {
3834
render(uiState)

0 commit comments

Comments
 (0)