mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Open .itinerary files always in KDE Itinerary
This commit is contained in:
@@ -352,6 +352,11 @@ public class CompositeReceiveFileJob extends BackgroundJob<Device, Void> {
|
||||
intent.setDataAndType(fileDocument.getUri(), mimeType);
|
||||
}
|
||||
|
||||
// Open files for KDE Itinerary explicitly because Android's activity resolution sucks
|
||||
if (fileDocument.getName().endsWith(".itinerary")) {
|
||||
intent.setClassName("org.kde.itinerary", "org.kde.itinerary.Activity");
|
||||
}
|
||||
|
||||
getDevice().getContext().startActivity(intent);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user