mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Do not play notification sound when creating media session on Android
This commit is contained in:
parent
7b5b46f560
commit
caedc28118
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class MediaSession {
|
||||||
mContext.getResources().getString(R.string.media_channel_name);
|
mContext.getResources().getString(R.string.media_channel_name);
|
||||||
String description =
|
String description =
|
||||||
mContext.getResources().getString(R.string.media_channel_description);
|
mContext.getResources().getString(R.string.media_channel_description);
|
||||||
int importance = NotificationManager.IMPORTANCE_DEFAULT;
|
int importance = NotificationManager.IMPORTANCE_LOW;
|
||||||
NotificationChannel channel =
|
NotificationChannel channel =
|
||||||
new NotificationChannel(MEDIA_CHANNEL_ID, name, importance);
|
new NotificationChannel(MEDIA_CHANNEL_ID, name, importance);
|
||||||
channel.setDescription(description);
|
channel.setDescription(description);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue