Adds support for drawable resources to AndroidNotification
This commit is contained in:
parent
bee7c7851f
commit
b092ad1cd2
@ -387,7 +387,7 @@ public class DisplayNotificationTask extends AsyncTask<Void, Void, Void> {
|
|||||||
} else if (image.startsWith("file://")) {
|
} else if (image.startsWith("file://")) {
|
||||||
return BitmapFactory.decodeFile(image.replace("file://", ""));
|
return BitmapFactory.decodeFile(image.replace("file://", ""));
|
||||||
} else {
|
} else {
|
||||||
int largeIconResId = RNFirebaseNotificationManager.getResourceId(context,"mipmap", image);
|
int largeIconResId = getIcon(image);
|
||||||
return BitmapFactory.decodeResource(context.getResources(), largeIconResId);
|
return BitmapFactory.decodeResource(context.getResources(), largeIconResId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user