Merge "Fixed whitelist stats so it\'s only logged on add." into nyc-dev
am: b103f4497d
* commit 'b103f4497d0137fb47ebb51d5d26901300071fce':
Fixed whitelist stats so it's only logged on add.
Change-Id: I46dcd529ac09bcf6f152f034847cd11a8d4b24f1
This commit is contained in:
@@ -92,8 +92,10 @@ public class DataSaverBackend {
|
|||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.w(TAG, "Can't reach policy manager", e);
|
Log.w(TAG, "Can't reach policy manager", e);
|
||||||
}
|
}
|
||||||
|
if (whitelisted) {
|
||||||
MetricsLogger.action(mContext, MetricsEvent.ACTION_DATA_SAVER_WHITELIST, packageName);
|
MetricsLogger.action(mContext, MetricsEvent.ACTION_DATA_SAVER_WHITELIST, packageName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isWhitelisted(int uid) {
|
public boolean isWhitelisted(int uid) {
|
||||||
if (mWhitelist == null) {
|
if (mWhitelist == null) {
|
||||||
|
Reference in New Issue
Block a user