From cb7c91d438fd56a0d6fb078fa595561d74917876 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 24 Dec 2018 17:36:37 +0100 Subject: [PATCH] Remove unneeded init --- .../ReceiveNotificationsPlugin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java index 6d3cddfd..be52afb6 100644 --- a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java @@ -84,10 +84,8 @@ public class ReceiveNotificationsPlugin extends Plugin { Bitmap largeIcon = null; if (np.hasPayload()) { - int width = 64; // default icon dimensions - int height = 64; - width = context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_width); - height = context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_height); + int width = context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_width); + int height = context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_height); final InputStream input = np.getPayload().getInputStream(); largeIcon = BitmapFactory.decodeStream(input); np.getPayload().close();