From 566560888b8ae9f800f5b7ca51140030b0a8c01f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 17 Apr 2015 15:00:03 +0200 Subject: [PATCH] Fixed restriction *AdvertisingId Fixes #2166 --- CHANGELOG.md | 1 + .../bokhorst/xprivacy/XAdvertisingIdClientInfo.java | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b1f5a229..cfe6f55fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Changelog * Fixed all problems reported through the debug info * Fixed restrictions *getToken* and *getTokenWithNotification* ([issue](/../../issues/2169)) +* Fixed restriction *AdvertisingId* ([issue](/../../issues/2166)) * Updated Norwegian translation [Open issues](https://github.com/M66B/XPrivacy/issues?state=open) diff --git a/src/biz/bokhorst/xprivacy/XAdvertisingIdClientInfo.java b/src/biz/bokhorst/xprivacy/XAdvertisingIdClientInfo.java index d939fb0ff..6113c5c51 100644 --- a/src/biz/bokhorst/xprivacy/XAdvertisingIdClientInfo.java +++ b/src/biz/bokhorst/xprivacy/XAdvertisingIdClientInfo.java @@ -37,6 +37,11 @@ public static List getInstances() { @Override protected void before(XParam param) throws Throwable { + // Do nothing + } + + @Override + protected void after(XParam param) throws Throwable { if (mMethod == Methods.getId) { String adid = (String) param.getResult(); if (adid != null) @@ -46,9 +51,4 @@ protected void before(XParam param) throws Throwable { } else Util.log(this, Log.WARN, "Unknown method=" + param.method.getName()); } - - @Override - protected void after(XParam param) throws Throwable { - // Do nothing - } }