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

Commit

Permalink
Fix usage stats manager (2)
Browse files Browse the repository at this point in the history
Refs #1757
  • Loading branch information
M66B committed Feb 14, 2015
1 parent ce1c3a1 commit f3db44b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/biz/bokhorst/xprivacy/XUsageStatsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ public class XUsageStatsManager extends XHook {
private Methods mMethod;

private XUsageStatsManager(Methods method, String restrictionName) {
super(restrictionName, method.name().replace("Srv_", ""), null);
super(restrictionName, method.name(), method.name().replace("Srv_", ""));
mMethod = method;
}

@Override
public boolean isVisible() {
return (mMethod != Methods.Srv_queryConfigurationStats && mMethod != Methods.Srv_queryUsageStats);
}

public String getClassName() {
if (mMethod.name().startsWith("Srv_"))
return "com.android.server.usage.UserUsageStatsService";
Expand Down

0 comments on commit f3db44b

Please sign in to comment.