Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
534
Issue boards
Milestones
Wiki
Code
Merge requests
11
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
828ffce2
Commit
828ffce2
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
MediaParsingService: Always set foreground Oreo+
parent
bd91edb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#8870
passed with stage
in 28 minutes and 17 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+4
-5
4 additions, 5 deletions
vlc-android/src/org/videolan/vlc/MediaParsingService.kt
with
4 additions
and
5 deletions
vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+
4
−
5
View file @
828ffce2
...
...
@@ -128,15 +128,14 @@ class MediaParsingService : Service(), DevicesDiscoveryCb, CoroutineScope, Lifec
}
override
fun
onStartCommand
(
intent
:
Intent
?,
flags
:
Int
,
startId
:
Int
):
Int
{
if
(
intent
==
null
)
{
exitCommand
()
return
Service
.
START_NOT_STICKY
}
// Set 1s delay before displaying scan icon
// Except for Android 8+ which expects startForeground immediately
if
(
AndroidUtil
.
isOOrLater
)
forceForeground
()
else
if
(
lastNotificationTime
<=
0L
)
lastNotificationTime
=
System
.
currentTimeMillis
()
if
(
intent
==
null
)
{
exitCommand
()
return
Service
.
START_NOT_STICKY
}
dispatcher
.
onServicePreSuperOnStart
()
when
(
intent
.
action
)
{
ACTION_INIT
->
{
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
42028545
·
5 years ago
mentioned in commit
42028545
mentioned in commit 42028545c255d8f7f038142c7fa1b16c44a5f6f3
Toggle commit list
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