Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Replace % in annotation names
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Feb 12, 2014
1 parent 69ed387 commit b221eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/Meta.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public static void annotate(Context context) {
String self = Meta.class.getPackage().getName();
for (Hook hook : get()) {
String name = hook.getRestrictionName() + "_" + hook.getName();
name = name.replace(".", "_").replace("/", "_");
name = name.replace(".", "_").replace("/", "_").replace("%", "_");
int resId = context.getResources().getIdentifier(name, "string", self);
if (resId > 0)
hook.annotate(context.getString(resId));
Expand Down

0 comments on commit b221eaf

Please sign in to comment.