2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

incomingCapabilities can be null

This commit is contained in:
Albert Vaca Cintora 2020-07-18 23:50:41 +02:00
parent bc7d3ebf3c
commit 0cea53540e

View File

@ -97,7 +97,11 @@ public class Device implements BaseLink.PacketReceiver {
private Set<String> incomingCapabilities = new HashSet<>();
public boolean supportsPacketType(String type) {
return incomingCapabilities.contains(type);
if (incomingCapabilities == null) {
return true;
} else {
return incomingCapabilities.contains(type);
}
}
public interface PluginsChangedListener {