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
Commits
54b37e04
Commit
54b37e04
authored
8 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
New notification icons
parent
36d14c32
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
+4
-2
4 additions, 2 deletions
vlc-android/src/org/videolan/vlc/PlaybackService.java
with
4 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/PlaybackService.java
+
4
−
2
View file @
54b37e04
...
...
@@ -828,16 +828,18 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
metaData
.
getBitmap
(
MediaMetadataCompat
.
METADATA_KEY_ALBUM_ART
)
:
AudioUtil
.
getCover
(
this
,
getCurrentMedia
(),
512
);
if
(
cover
==
null
)
cover
=
BitmapFactory
.
decodeResource
(
VLCApplication
.
getAppContext
().
getResources
(),
R
.
drawable
.
ic
on
);
cover
=
BitmapFactory
.
decodeResource
(
VLCApplication
.
getAppContext
().
getResources
(),
R
.
drawable
.
ic
_no_media
);
Notification
notification
;
//Watch notification dismissed
PendingIntent
piStop
=
PendingIntent
.
getBroadcast
(
this
,
0
,
new
Intent
(
ACTION_REMOTE_STOP
),
PendingIntent
.
FLAG_UPDATE_CURRENT
);
MediaWrapper
mw
=
getCurrentMedia
();
boolean
video
=
mw
!=
null
&&
mw
.
hasFlag
(
MediaWrapper
.
MEDIA_FORCE_AUDIO
);
// add notification to status bar
NotificationCompat
.
Builder
builder
=
new
NotificationCompat
.
Builder
(
this
);
builder
.
setSmallIcon
(
R
.
drawable
.
ic_
stat_vlc
)
builder
.
setSmallIcon
(
video
?
R
.
drawable
.
ic_
notif_video
:
R
.
drawable
.
ic_notif_audio
)
.
setVisibility
(
NotificationCompat
.
VISIBILITY_PUBLIC
)
.
setContentTitle
(
title
)
.
setContentText
(
getMediaDescription
(
artist
,
album
))
...
...
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