Skip to content

Commit

Permalink
Merge branch 'master' of github.com:M66B/XPrivacy
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Feb 4, 2014
2 parents 1599350 + 1ac1a8a commit a88436b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<string name="menu_clear_all">Tout effacer</string>
<string name="menu_restrict_all">Tout restreindre</string>
<string name="menu_clear_usage">Effacer</string>
<string name="menu_clear_db">Clear all data</string>
<string name="menu_clear_db">Effacer toutes les données</string>
<string name="menu_usage_all">Basculer toutes/restreintes</string>
<string name="menu_apply">Appliquer le modèle</string>
<string name="menu_clear">Effacer</string>
Expand All @@ -42,15 +42,15 @@
<string name="menu_tutorial">Didacticiel</string>
<string name="menu_exclude">Exclure</string>
<string name="menu_close">Fermer</string>
<string name="menu_category">Act on the entire category</string>
<string name="menu_category">Agir sur toute la catégorie</string>
<string name="msg_abort">Arrêt en cours</string>
<string name="msg_aborted">Arrêté</string>
<string name="msg_new">Nouv. :</string>
<string name="msg_update">MàJ :</string>
<string name="msg_licensed" formatted="false">Autorisé à : %s</string>
<string name="msg_loading">Chargement</string>
<string name="msg_applying">Application en cours</string>
<string name="msg_applied">Template appliquée</string>
<string name="msg_applied">Modèle appliqué</string>
<string name="msg_saved_to" formatted="false">Sauvé dans %s</string>
<string name="msg_no_restrictions">Pas de restriction trouvée</string>
<string name="msg_sure">Êtes-vous certain ?</string>
Expand All @@ -64,13 +64,13 @@
<string name="msg_restart">Redémarrage de l\'application nécessaire</string>
<string name="msg_register">Inscrivez votre appareil, s.v.p.</string>
<string name="msg_registered">Vérifiez vos mails pour activer votre appareil</string>
<string name="msg_service">Service de mis-à-jour en fonctionnement</string>
<string name="msg_service">Service de mise-à-jour en fonctionnement</string>
<string name="msg_migrating" formatted="false">Migration %s</string>
<string name="msg_randomizing" formatted="false">Randomisation %s</string>
<string name="msg_upgrading" formatted="false">Mise-à-jour %s</string>
<string name="msg_support_info">Une vérification interne a échoué, voulez-vous envoyer le rapport d\'erreurs?</string>
<string name="msg_ondemand" formatted="false">%1$s is trying to use %3$s in the %2$s category</string>
<string name="msg_restrictedby">Restricted by XPrivacy</string>
<string name="msg_ondemand" formatted="false">%1$s tente d'utiliser %3$s dans la catégorie %2$s</string>
<string name="msg_restrictedby">Restreint par XPrivacy</string>
<string name="msg_first"><b>Un grand soin est apporté au développement et aux tests de XPrivacy. Toutefois,
il est impossible de garantir un fonctionnement parfait sur chaque appareil et pour chaque application.
\n\nSon utilisation est à vos risques et périls !</b>\n\nVeuillez prendre connaissance de la licence :</string>
Expand Down Expand Up @@ -120,7 +120,7 @@ il est impossible de garantir un fonctionnement parfait sur chaque appareil et p
<string name="title_sinvert">Inverser l\'ordre</string>
<string name="title_allow">Permettre</string>
<string name="title_deny">Bloquer</string>
<string name="title_denyonce">Deny once</string>
<string name="title_denyonce">Bloquer une fois</string>
<string name="settings_serial">N° de série</string>
<string name="settings_lat">Latitude</string>
<string name="settings_lon">Longitude</string>
Expand All @@ -144,8 +144,8 @@ il est impossible de garantir un fonctionnement parfait sur chaque appareil et p
<string name="settings_confidence">Intervalle de confiance maximum</string>
<string name="settings_experimental">Fonctions expérimentales (redémarrage requis)</string>
<string name="settings_https">Utiliser des connexions sécurisée</string>
<string name="settings_syscomponents">Restrict system components (Android) (requires restart)</string>
<string name="settings_usagedata">Montrer les données d\'usage pour chaque application (requires restart)</string>
<string name="settings_syscomponents">Restreindre composants système (Android) (redémarrage requis)</string>
<string name="settings_usagedata">Montrer les données d\'usage pour chaque application (redémarrage requis)</string>
<string name="help_application">Application</string>
<string name="help_internet">a les permissions Internet</string>
<string name="help_granted">a les permissions Android</string>
Expand Down
6 changes: 3 additions & 3 deletions src/biz/bokhorst/xprivacy/ActivityApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public void onClick(DialogInterface dialog, int which) {
for (String restrictionName : listRestriction) {
String templateName = PrivacyManager.cSettingTemplate + "." + restrictionName;
if (PrivacyManager.getSettingBool(null, 0, templateName, !ondemand, false))
listPRestriction.add(new PRestriction(mAppInfo.getUid(), restrictionName, null, restricted));
listPRestriction.add(new PRestriction(mAppInfo.getUid(), restrictionName, null, restricted, restricted));
}
PrivacyManager.setRestrictionList(listPRestriction);
List<Boolean> newState = PrivacyManager.getRestartStates(mAppInfo.getUid(), null);
Expand Down Expand Up @@ -974,7 +974,7 @@ public void onClick(View view) {
List<Boolean> oldState = PrivacyManager.getRestartStates(mAppInfo.getUid(), restrictionName);
if (!crestricted)
PrivacyManager.deleteRestrictions(mAppInfo.getUid(), restrictionName);
PrivacyManager.setRestriction(mAppInfo.getUid(), restrictionName, null, crestricted, false);
PrivacyManager.setRestriction(mAppInfo.getUid(), restrictionName, null, crestricted, crestricted);
List<Boolean> newState = PrivacyManager.getRestartStates(mAppInfo.getUid(), restrictionName);

// Update all/some restricted
Expand Down Expand Up @@ -1192,7 +1192,7 @@ public void onClick(View view) {
restricted = !restricted;
holder.ctvMethodName.setChecked(restricted);
PrivacyManager.setRestriction(mAppInfo.getUid(), restrictionName, md.getName(), restricted,
false);
restricted);

// Refresh display
notifyDataSetChanged(); // Needed to update parent
Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ public void onClick(DialogInterface dialog, int which) {
List<PRestriction> listPRestriction = new ArrayList<PRestriction>();
for (String restrictionName : listRestriction)
listPRestriction.add(new PRestriction(xAppInfo.getUid(), restrictionName, null,
crestricted));
crestricted, crestricted));
PrivacyManager.setRestrictionList(listPRestriction);
List<Boolean> newState = PrivacyManager.getRestartStates(xAppInfo.getUid(),
mRestrictionName);
Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ else if (PrivacyManager.cView.equals(restriction.restrictionName))
notifyRestricted(restriction);

// Ask to restrict
if (!result.restricted && !result.asked && usage && PrivacyManager.isApplication(restriction.uid))
if (!result.asked && usage && PrivacyManager.isApplication(restriction.uid))
result.restricted = onDemandDialog(hook, restriction);

// Log usage
Expand Down

0 comments on commit a88436b

Please sign in to comment.