mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 22:25:08 +00:00
incomingCapabilities can be null
This commit is contained in:
@@ -97,7 +97,11 @@ public class Device implements BaseLink.PacketReceiver {
|
|||||||
private Set<String> incomingCapabilities = new HashSet<>();
|
private Set<String> incomingCapabilities = new HashSet<>();
|
||||||
|
|
||||||
public boolean supportsPacketType(String type) {
|
public boolean supportsPacketType(String type) {
|
||||||
return incomingCapabilities.contains(type);
|
if (incomingCapabilities == null) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return incomingCapabilities.contains(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface PluginsChangedListener {
|
public interface PluginsChangedListener {
|
||||||
|
Reference in New Issue
Block a user