Commit 94c25e88 authored by Varun Patil's avatar Varun Patil

Use resized image in rich notification

parent a82d4ee4
...@@ -124,7 +124,8 @@ public class InstiAppFirebaseMessagingService extends FirebaseMessagingService { ...@@ -124,7 +124,8 @@ public class InstiAppFirebaseMessagingService extends FirebaseMessagingService {
} }
Bitmap largeIcon = null; Bitmap largeIcon = null;
if (largeIconUrl != null) { if (largeIconUrl != null) {
largeIcon = getCroppedBitmap(Picasso.get().load(largeIconUrl).get(), 200); largeIcon = getCroppedBitmap(
Picasso.get().load(Constants.resizeImageUrl(largeIconUrl, 200)).get(), 200);
} }
return new Bitmap[]{image, largeIcon}; return new Bitmap[]{image, largeIcon};
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment