From 62eb3d3a7eddb2bb0c32b33b3dcf57f26548a080 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 14 Feb 2015 21:48:23 +0100 Subject: [PATCH] Fixed usage stats manager (3) Refs #1757 --- src/biz/bokhorst/xprivacy/XUsageStatsManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/XUsageStatsManager.java b/src/biz/bokhorst/xprivacy/XUsageStatsManager.java index cc44cb0d2..8ee8744d8 100644 --- a/src/biz/bokhorst/xprivacy/XUsageStatsManager.java +++ b/src/biz/bokhorst/xprivacy/XUsageStatsManager.java @@ -13,13 +13,13 @@ public class XUsageStatsManager extends XHook { private Methods mMethod; private XUsageStatsManager(Methods method, String restrictionName) { - super(restrictionName, method.name(), method.name().replace("Srv_", "")); + super(restrictionName, method.name().replace("Srv_", ""), method.name()); mMethod = method; } @Override public boolean isVisible() { - return (mMethod != Methods.Srv_queryConfigurationStats && mMethod != Methods.Srv_queryUsageStats); + return !mMethod.name().startsWith("Srv_"); } public String getClassName() {