Skip to content
Snippets Groups Projects
Commit ce2dad43 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV: Fix startup

parent 1a516da4
No related branches found
Tags 0.5.0
No related merge requests found
Pipeline #6831 passed with stage
in 26 minutes and 33 seconds
......@@ -65,7 +65,6 @@ class MainTvModel(app: Application) : AndroidViewModel(app), Medialibrary.OnMedi
private val showInternalStorage = AndroidDevices.showInternalStorage()
private val browserFavRepository = BrowserFavRepository.getInstance(context)
private var updatedFavoritList: List<MediaWrapper> = listOf()
private val nowPlayingDelegate = NowPlayingDelegate(this)
private var showHistory = false
// LiveData
private val favorites: LiveData<List<BrowserFav>> = browserFavRepository.browserFavorites
......@@ -74,6 +73,8 @@ class MainTvModel(app: Application) : AndroidViewModel(app), Medialibrary.OnMedi
val browsers : LiveData<List<MediaLibraryItem>> = MutableLiveData()
val history : LiveData<List<MediaWrapper>> = MutableLiveData()
private val nowPlayingDelegate = NowPlayingDelegate(this)
private val favObserver = Observer<List<BrowserFav>> { list ->
updatedFavoritList = convertFavorites(list)
updateActor.offer(Unit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment