Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
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
Merge requests
!511
Cleaning
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Cleaning
Dekans/vlc-android:cleaning
into
master
Overview
0
Commits
2
Pipelines
2
Changes
33
Merged
Geoffrey Métais
requested to merge
Dekans/vlc-android:cleaning
into
master
4 years ago
Overview
0
Commits
2
Pipelines
2
Changes
33
Expand
Various code cleaning commits
Edited
4 years ago
by
Geoffrey Métais
0
0
Merge request reports
Compare
master
version 1
09bfb8b0
4 years ago
master (base)
and
latest version
latest version
6e9c1bc5
2 commits,
4 years ago
version 1
09bfb8b0
2 commits,
4 years ago
33 files
+
104
−
131
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
33
Search (e.g. *.vue) (Ctrl+P)
application/resources/src/main/java/org/videolan/resources/util/Extensions.kt
+
1
−
1
Options
@@ -41,7 +41,7 @@ fun Context.startMedialibrary(firstRun: Boolean = false, upgrade: Boolean = fals
val
prefs
=
withContext
(
coroutineContextProvider
.
IO
)
{
Settings
.
getInstance
(
this
@startMedialibrary
)
}
val
scanOpt
=
if
(
Settings
.
showTvUi
)
ML_SCAN_ON
else
prefs
.
getInt
(
KEY_MEDIALIBRARY_SCAN
,
-
1
)
if
(
parse
&&
scanOpt
==
-
1
)
{
if
(
dbExists
(
coroutineContextProvider
))
prefs
.
edit
().
putInt
(
KEY_MEDIALIBRARY_SCAN
,
ML_SCAN_ON
)
.
apply
()
if
(
dbExists
(
coroutineContextProvider
))
prefs
.
putSingle
(
KEY_MEDIALIBRARY_SCAN
,
ML_SCAN_ON
)
}
val
intent
=
Intent
(
ACTION_INIT
).
setClassName
(
applicationContext
,
MEDIAPARSING_SERVICE
)
ContextCompat
.
startForegroundService
(
this
@startMedialibrary
,
intent
Loading