Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
530
Issue boards
Milestones
Wiki
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
ce2dad43
Commit
ce2dad43
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
TV: Fix startup
parent
1a516da4
No related branches found
Branches containing commit
Tags
0.5.0
Tags containing commit
No related merge requests found
Pipeline
#6831
passed with stage
in 26 minutes and 33 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt
+2
-1
2 additions, 1 deletion
...android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt
with
2 additions
and
1 deletion
vlc-android/src/org/videolan/vlc/viewmodels/tv/MainTvModel.kt
+
2
−
1
View file @
ce2dad43
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment