Skip to content
Browse files

Changed default package name to the current app package name to simpl…

…ify common use.
  • Loading branch information...
1 parent cd870ab commit e8eff21a26d4d8f8b6fab4e59375ed0e539e2ee0 @snufkinto snufkinto committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Android/Resources/ResourcesPlugin.java
View
2 Android/Resources/ResourcesPlugin.java
@@ -41,7 +41,7 @@ public PluginResult execute(String action, JSONArray args, String callbackId) {
obj = args.getJSONObject(0);
if (obj != null) {
resourceNames = obj.has("resources") ? obj.getJSONArray("resources") : null;
- pkg = obj.has("package") ? obj.getString("package") : null;
+ pkg = obj.has("package") ? obj.getString("package") : ctx.getPackageName();
}
if (resourceNames != null && resourceNames.length() > 0 && pkg != null) {

0 comments on commit e8eff21

Please sign in to comment.
Something went wrong with that request. Please try again.