We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting android.content.res.Resources$NotFoundException: Resource ID #0x0 error for this:
android.content.res.Resources$NotFoundException: Resource ID #0x0
FlagKit.drawableWithFlag(getContext(), "TR")
Since passing capital letters causes this exception. I solve the issue by passing tr
tr
But it would be better if you solve this in SDK like this:
public static Drawable drawableWithFlag(Context context, String flagName) { Resources res = context.getResources(); int resourceId = res.getIdentifier(flagName.toLowerCase(), "drawable", context.getPackageName()); return res.getDrawable(resourceId); }
The text was updated successfully, but these errors were encountered:
converting the iso to small letters, worked for me.
Sorry, something went wrong.
No branches or pull requests
I'm getting
android.content.res.Resources$NotFoundException: Resource ID #0x0
error for this:FlagKit.drawableWithFlag(getContext(), "TR")
Since passing capital letters causes this exception. I solve the issue by passing
tr
But it would be better if you solve this in SDK like this:
The text was updated successfully, but these errors were encountered: