Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ffd5a7b authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

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

am: b103f449

* commit 'b103f449':
  Fixed whitelist stats so it's only logged on add.

Change-Id: I46dcd529ac09bcf6f152f034847cd11a8d4b24f1
parents 4d43e9a7 b103f449
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {