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:
committed by
Nicolas Fella
parent
43b90cd8f9
commit
7992820d36
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user