[notifications][android] Fix file:// for android notification images
This commit is contained in:
parent
cd5c616a93
commit
62706f9629
|
@ -517,7 +517,7 @@ public class RNFirebaseNotificationManager {
|
|||
if (image.startsWith("http://") || image.startsWith("https://")) {
|
||||
return getBitmapFromUrl(image);
|
||||
} else if (image.startsWith("file://")) {
|
||||
return BitmapFactory.decodeFile(image);
|
||||
return BitmapFactory.decodeFile(image.replace("file://", ""));
|
||||
} else {
|
||||
int largeIconResId = getResourceId("mipmap", image);
|
||||
return BitmapFactory.decodeResource(context.getResources(), largeIconResId);
|
||||
|
|
Loading…
Reference in New Issue