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
c70ae7c7
Commit
c70ae7c7
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
PlaybackService: safer way to access app context
parent
dd9e6136
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/PlaybackService.java
+1
-1
1 addition, 1 deletion
vlc-android/src/org/videolan/vlc/PlaybackService.java
with
1 addition
and
1 deletion
vlc-android/src/org/videolan/vlc/PlaybackService.java
+
1
−
1
View file @
c70ae7c7
...
...
@@ -187,7 +187,7 @@ public class PlaybackService extends MediaBrowserServiceCompat{
// Make sure the audio player will acquire a wake-lock while playing. If we don't do
// that, the CPU might go to sleep while the song is playing, causing playback to stop.
final
PowerManager
pm
=
(
PowerManager
)
VLC
Application
.
getApp
Context
().
getSystemService
(
Context
.
POWER_SERVICE
);
final
PowerManager
pm
=
(
PowerManager
)
get
ApplicationContext
().
getSystemService
(
Context
.
POWER_SERVICE
);
mWakeLock
=
pm
.
newWakeLock
(
PowerManager
.
PARTIAL_WAKE_LOCK
,
TAG
);
updateHasWidget
();
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
845a4c1f
·
7 years ago
mentioned in commit
845a4c1f
mentioned in commit 845a4c1f938d442354fd903e06da2f171aabfaf7
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