diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index c6c736ed..dab5fda4 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -31,7 +31,6 @@
Other notifications
Persistent indicator
Media control
+ File transfer
diff --git a/src/org/kde/kdeconnect/Helpers/NotificationHelper.java b/src/org/kde/kdeconnect/Helpers/NotificationHelper.java
index bf98a7ea..048568e5 100644
--- a/src/org/kde/kdeconnect/Helpers/NotificationHelper.java
+++ b/src/org/kde/kdeconnect/Helpers/NotificationHelper.java
@@ -4,6 +4,9 @@ import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
+import android.media.AudioAttributes;
+import android.media.Ringtone;
+import android.media.RingtoneManager;
import org.kde.kdeconnect_tp.R;
@@ -13,6 +16,7 @@ public class NotificationHelper {
public final static String PERSISTENT = "persistent";
public final static String DEFAULT = "default";
public final static String MEDIA_CONTROL = "media_control";
+ public final static String FILETRANSFER = "filetransfer";
}
public static void notifyCompat(NotificationManager notificationManager, int notificationId, Notification notification) {
@@ -60,6 +64,15 @@ public class NotificationHelper {
NotificationManager.IMPORTANCE_LOW)
);
+ NotificationChannel fileTransfer = new NotificationChannel(
+ Channels.FILETRANSFER,
+ context.getString(R.string.notification_channel_filetransfer),
+ NotificationManager.IMPORTANCE_LOW);
+
+ fileTransfer.enableVibration(false);
+
+ manager.createNotificationChannel(fileTransfer);
+
}
}
diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java
index f0153039..5df29b66 100644
--- a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java
+++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java
@@ -55,7 +55,7 @@ public class ShareNotification {
this.filename = filename;
notificationId = (int) System.currentTimeMillis();
notificationManager = (NotificationManager) device.getContext().getSystemService(Context.NOTIFICATION_SERVICE);
- builder = new NotificationCompat.Builder(device.getContext(), NotificationHelper.Channels.DEFAULT)
+ builder = new NotificationCompat.Builder(device.getContext(), NotificationHelper.Channels.FILETRANSFER)
.setContentTitle(device.getContext().getResources().getString(R.string.incoming_file_title, device.getName()))
.setContentText(device.getContext().getResources().getString(R.string.incoming_file_text, filename))
.setTicker(device.getContext().getResources().getString(R.string.incoming_file_title, device.getName()))