2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Remove unneeded init

This commit is contained in:
Nicolas Fella
2018-12-24 17:36:37 +01:00
parent c8be06ec1e
commit cb7c91d438

View File

@@ -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();