Merge "Fixed whitelist stats so it's only logged on add." into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-05-23 13:45:55 +00:00
committed by Android (Google) Code Review

View File

@@ -92,8 +92,10 @@ public class DataSaverBackend {
} catch (RemoteException e) {
Log.w(TAG, "Can't reach policy manager", e);
}
if (whitelisted) {
MetricsLogger.action(mContext, MetricsEvent.ACTION_DATA_SAVER_WHITELIST, packageName);
}
}
public boolean isWhitelisted(int uid) {
if (mWhitelist == null) {