File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/example/android/devbyteviewer/repository Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818package com.example.android.devbyteviewer.repository
1919
2020import androidx.lifecycle.LiveData
21- import androidx.lifecycle.Transformations
21+ import androidx.lifecycle.map
2222import com.example.android.devbyteviewer.database.VideosDatabase
2323import com.example.android.devbyteviewer.database.asDomainModel
2424import com.example.android.devbyteviewer.domain.Video
@@ -33,7 +33,7 @@ class VideosRepository(private val database: VideosDatabase) {
3333 * A playlist of videos that can be shown on the screen.
3434 */
3535 val videos: LiveData <List <Video >> =
36- Transformations .map( database.videoDao.getVideos()) {
36+ database.videoDao.getVideos().map {
3737 it.asDomainModel()
3838 }
3939
You can’t perform that action at this time.
0 commit comments