2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-10-25 14:58:36 +00:00

Log if plugins receive wrong packets

This commit is contained in:
Albert Vaca
2016-05-31 21:02:35 +02:00
parent 614505518b
commit 6f6caa0e8d

View File

@@ -28,6 +28,7 @@ import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
import android.util.Log;
import org.kde.kdeconnect.NetworkPackage;
import org.kde.kdeconnect.UserInterface.MaterialActivity;
@@ -53,6 +54,7 @@ public class PingPlugin extends Plugin {
public boolean onPackageReceived(NetworkPackage np) {
if (!np.getType().equals(PACKAGE_TYPE_PING)) {
Log.e("PingPlugin", "Ping plugin should not receive packets other than pings!");
return false;
}