mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-02 15:15:09 +00:00
Renaming a package type was a bad call
This commit is contained in:
@@ -918,12 +918,12 @@ public class Device implements BaseLink.PackageReceiver {
|
||||
|
||||
public void hackToMakeRetrocompatiblePacketTypes(NetworkPackage np) {
|
||||
if (protocolVersion >= 6) return;
|
||||
np.mType = np.getType().replace(".request","").replace(".input",".mousepad");
|
||||
np.mType = np.getType().replace(".request","");
|
||||
}
|
||||
|
||||
public String hackToMakeRetrocompatiblePacketTypes(String type) {
|
||||
if (protocolVersion >= 6) return type;
|
||||
return type.replace(".request","").replace(".input",".mousepad");
|
||||
return type.replace(".request","");
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user