Merge pull request #1221 from aMarCruz/drawable-resources

Adds support for drawable resources to AndroidNotification
This commit is contained in:
Chris Bianca 2018-06-17 16:16:54 +01:00 committed by GitHub
commit fbc72dc2e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ public class DisplayNotificationTask extends AsyncTask<Void, Void, Void> {
} else if (image.startsWith("file://")) {
return BitmapFactory.decodeFile(image.replace("file://", ""));
} else {
int largeIconResId = RNFirebaseNotificationManager.getResourceId(context,"mipmap", image);
int largeIconResId = getIcon(image);
return BitmapFactory.decodeResource(context.getResources(), largeIconResId);
}
}