2
0
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:
Albert Vaca
2016-06-03 00:46:18 +02:00
parent e433ad8bce
commit 3f20af445a
3 changed files with 14 additions and 14 deletions

View File

@@ -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","");
}
}