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 18
18
package com.example.android.devbyteviewer.repository
19
19
20
20
import androidx.lifecycle.LiveData
21
- import androidx.lifecycle.Transformations
21
+ import androidx.lifecycle.map
22
22
import com.example.android.devbyteviewer.database.VideosDatabase
23
23
import com.example.android.devbyteviewer.database.asDomainModel
24
24
import com.example.android.devbyteviewer.domain.Video
@@ -33,7 +33,7 @@ class VideosRepository(private val database: VideosDatabase) {
33
33
* A playlist of videos that can be shown on the screen.
34
34
*/
35
35
val videos: LiveData <List <Video >> =
36
- Transformations .map( database.videoDao.getVideos()) {
36
+ database.videoDao.getVideos().map {
37
37
it.asDomainModel()
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments