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

Use appropriate notification channel for file transfer notifications

This fixes bug 421108 (https://bugs.kde.org/show_bug.cgi?id=421108)
This commit is contained in:
Ash Holland
2020-06-17 14:47:34 +01:00
committed by Nicolas Fella
parent 43b90cd8f9
commit 7992820d36
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ class ReceiveNotification {
}
public void setFinished(String message) {
builder = new NotificationCompat.Builder(device.getContext(), NotificationHelper.Channels.DEFAULT);
builder = new NotificationCompat.Builder(device.getContext(), NotificationHelper.Channels.FILETRANSFER);
builder.setContentTitle(message)
.setTicker(message)
.setSmallIcon(android.R.drawable.stat_sys_download_done)

View File

@@ -78,7 +78,7 @@ class UploadNotification {
}
public void setFinished(String message) {
builder = new NotificationCompat.Builder(device.getContext(), NotificationHelper.Channels.DEFAULT);
builder = new NotificationCompat.Builder(device.getContext(), NotificationHelper.Channels.FILETRANSFER);
builder.setContentTitle(message)
.setTicker(message)
.setSmallIcon(android.R.drawable.stat_sys_upload_done)