From 6632deb5620ac4142b9ac1e6460d235946de4bce Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 14 Feb 2014 21:32:27 +0100 Subject: [PATCH] Annotations for phone Refs #838 --- CHANGELOG.md | 2 +- res/values/functions.xml | 38 +++++++++++++++++++++++++++-- src/biz/bokhorst/xprivacy/Meta.java | 2 +- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfbbcf95d..767f5f2db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Changelog **Next release** * Added documentation for sensors and overlay, thanks @[jpeg729](https://github.com/jpeg729) ([issue](/../../issues/838)) -* Added documentation for network, NFC, notifications ([issue](/../../issues/838)) +* Added documentation for network, NFC, notifications, phone ([issue](/../../issues/838)) * Updated Simplified Chinese translation * Updated Slovak translation diff --git a/res/values/functions.xml b/res/values/functions.xml index e8fd3690a..e4f8774d8 100644 --- a/res/values/functions.xml +++ b/res/values/functions.xml @@ -141,9 +141,9 @@ Google documentation]]> Google documentation]]> Google documentation]]> - WifiConfiguration]]> + WifiConfiguration]]> - NfcAdapter]]> + NfcAdapter]]> Google documentation]]> Google documentation]]> Google documentation]]> @@ -158,6 +158,40 @@ Google documentation]]> Google documentation]]> + Google documentation]]> + ISIM information]]> + ISIM information]]> + ISIM information]]> + + Google documentation]]> + MSISDN]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + APN information]]> + + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + Google documentation]]> + MCC]]> + MNC]]> Google documentation]]> Google documentation]]> diff --git a/src/biz/bokhorst/xprivacy/Meta.java b/src/biz/bokhorst/xprivacy/Meta.java index e973bd08b..630972825 100644 --- a/src/biz/bokhorst/xprivacy/Meta.java +++ b/src/biz/bokhorst/xprivacy/Meta.java @@ -273,7 +273,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("/", "_").replace("%", "_"); + name = name.replace(".", "_").replace("/", "_").replace("%", "_").replace("-", "_"); int resId = context.getResources().getIdentifier(name, "string", self); if (resId > 0) hook.annotate(context.getString(resId));