2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Added a separate channel so notification in Oreo can be hidden

This commit is contained in:
Albert Vaca
2018-05-15 00:32:51 +02:00
parent f330053015
commit a7a5beb7e8
9 changed files with 36 additions and 24 deletions

View File

@@ -406,7 +406,7 @@ public class Device implements BaseLink.PacketReceiver {
final NotificationManager notificationManager = (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE);
Notification noti = new NotificationCompat.Builder(getContext(), NotificationHelper.getDefaultChannelId(notificationManager))
Notification noti = new NotificationCompat.Builder(getContext(), NotificationHelper.Channels.DEFAULT)
.setContentTitle(res.getString(R.string.pairing_request_from, getName()))
.setContentText(res.getString(R.string.tap_to_answer))
.setContentIntent(pendingIntent)