Skip to content

Commit

Permalink
Changed default package name to the current app package name to simpl…
Browse files Browse the repository at this point in the history
…ify common use.
  • Loading branch information
snufkinto committed May 30, 2012
1 parent cd870ab commit e8eff21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Android/Resources/ResourcesPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e8eff21

Please sign in to comment.