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

Commit 746b3847 authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixed whitelist stats so it's only logged on add.

BUG: 28166693
Change-Id: If1f91167c21054e78a966670c20c174c3f73d2a5
parent 290ca6ec
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) {