diff --git a/res/values/strings.xml b/res/values/strings.xml index edcbe2b5..8cde8587 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -354,4 +354,5 @@ Launch the camera app to ease taking and transferring pictures findmyphone_ringtone + No suitable app found to open this file diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java index bd33a12a..6347f8ba 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java @@ -21,6 +21,7 @@ package org.kde.kdeconnect.Plugins.SharePlugin; import android.app.DownloadManager; +import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; @@ -202,6 +203,10 @@ public class CompositeReceiveFileJob extends BackgroundJob { shareNotification.show(); } reportResult(null); + + } catch (ActivityNotFoundException e) { + shareNotification.setFinished(getDevice().getContext().getString(R.string.no_app_for_opening)); + shareNotification.show(); } catch (Exception e) { isRunning = false;