Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ewout ter Hoeven
VLC-Android
Commits
efbf1611
There was an error fetching the commit references. Please try again later.
Commit
efbf1611
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Make notifications not intrusives on Oreo
parent
f5e24037
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/gui/helpers/NotificationHelper.java
+2
-2
2 additions, 2 deletions
.../src/org/videolan/vlc/gui/helpers/NotificationHelper.java
with
2 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.java
+
2
−
2
View file @
efbf1611
...
...
@@ -176,14 +176,14 @@ public class NotificationHelper {
// Playback channel
CharSequence
name
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
playback
);
String
description
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
playback_controls
);
NotificationChannel
channel
=
new
NotificationChannel
(
"vlc_playback"
,
name
,
NotificationManager
.
IMPORTANCE_
DEFAULT
);
NotificationChannel
channel
=
new
NotificationChannel
(
"vlc_playback"
,
name
,
NotificationManager
.
IMPORTANCE_
LOW
);
channel
.
setDescription
(
description
);
channel
.
setLockscreenVisibility
(
Notification
.
VISIBILITY_PUBLIC
);
sNotificationManager
.
createNotificationChannel
(
channel
);
// Scan channel
name
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
medialibrary_scan
);
description
=
VLCApplication
.
getAppResources
().
getString
(
R
.
string
.
Medialibrary_progress
);
channel
=
new
NotificationChannel
(
"vlc_medialibrary"
,
name
,
NotificationManager
.
IMPORTANCE_
DEFAULT
);
channel
=
new
NotificationChannel
(
"vlc_medialibrary"
,
name
,
NotificationManager
.
IMPORTANCE_
LOW
);
channel
.
setDescription
(
description
);
channel
.
setLockscreenVisibility
(
Notification
.
VISIBILITY_PUBLIC
);
sNotificationManager
.
createNotificationChannel
(
channel
);
...
...
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