Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
0cce47e6
Commit
0cce47e6
authored
1 year ago
by
Nicolas Pomepuy
Committed by
Duncan McNamara
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix the tvui setting state when installing the app
parent
c0df70d3
No related branches found
No related tags found
1 merge request
!1753
Parental control
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/util/VersionMigration.kt
+16
-2
16 additions, 2 deletions
...vlc-android/src/org/videolan/vlc/util/VersionMigration.kt
with
16 additions
and
2 deletions
application/vlc-android/src/org/videolan/vlc/util/VersionMigration.kt
+
16
−
2
View file @
0cce47e6
...
...
@@ -36,7 +36,18 @@ import org.videolan.medialibrary.interfaces.Medialibrary
import
org.videolan.medialibrary.interfaces.media.Playlist
import
org.videolan.resources.AndroidDevices
import
org.videolan.resources.util.getFromMl
import
org.videolan.tools.*
import
org.videolan.tools.FORCE_PLAY_ALL_AUDIO
import
org.videolan.tools.FORCE_PLAY_ALL_VIDEO
import
org.videolan.tools.KEY_APP_THEME
import
org.videolan.tools.KEY_CURRENT_MAJOR_VERSION
import
org.videolan.tools.KEY_CURRENT_SETTINGS_VERSION
import
org.videolan.tools.KEY_VIDEO_CONFIRM_RESUME
import
org.videolan.tools.SCREENSHOT_MODE
import
org.videolan.tools.Settings
import
org.videolan.tools.VIDEO_HUD_TIMEOUT
import
org.videolan.tools.coerceInOrDefault
import
org.videolan.tools.putSingle
import
org.videolan.tools.toInt
import
org.videolan.vlc.gui.onboarding.ONBOARDING_DONE_KEY
import
org.videolan.vlc.isVLC4
import
java.io.File
...
...
@@ -177,7 +188,10 @@ object VersionMigration {
*/
private
fun
migrateToVersion5
(
settings
:
SharedPreferences
)
{
Log
.
i
(
this
::
class
.
java
.
simpleName
,
"Migrating to Version 5: force the TV ui setting if device is TV"
)
if
(
Settings
.
device
.
isTv
&&
settings
.
getBoolean
(
"tv_ui"
,
false
)
!=
settings
.
getBoolean
(
"tv_ui"
,
true
))
settings
.
putSingle
(
"tv_ui"
,
true
)
if
(
Settings
.
device
.
isTv
&&
settings
.
getBoolean
(
"tv_ui"
,
false
)
!=
settings
.
getBoolean
(
"tv_ui"
,
true
))
{
settings
.
putSingle
(
"tv_ui"
,
true
)
Settings
.
tvUI
=
true
}
}
/**
...
...
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