diff --git a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java --- a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java @@ -42,8 +42,7 @@ public class ReceiveNotificationsPlugin extends Plugin { - public final static String PACKAGE_TYPE_NOTIFICATION = "kdeconnect.notification"; - public final static String PACKAGE_TYPE_NOTIFICATION_REQUEST = "kdeconnect.notification.request"; + private final static String PACKAGE_TYPE_NOTIFICATION = "kdeconnect.notification"; @Override public String getDisplayName() { @@ -62,10 +61,7 @@ @Override public boolean onCreate() { - // request all existing notifications - NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_NOTIFICATION_REQUEST); - np.set("request", true); - device.sendPackage(np); + // TODO request current notifications return true; } @@ -93,7 +89,10 @@ } final InputStream input = np.getPayload(); largeIcon = BitmapFactory.decodeStream(np.getPayload()); - try { input.close(); } catch (Exception e) { } + try { + input.close(); + } catch (Exception e) { + } if (largeIcon != null) { //Log.i("NotificationsPlugin", "hasPayload: size=" + largeIcon.getWidth() + "/" + largeIcon.getHeight() + " opti=" + width + "/" + height); if (largeIcon.getWidth() > width || largeIcon.getHeight() > height) { @@ -129,7 +128,7 @@ @Override public String[] getOutgoingPackageTypes() { - return new String[]{PACKAGE_TYPE_NOTIFICATION_REQUEST}; + return new String[0]; } }