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

Commit 0f19d29c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[NetworkScorerAppManager] system_server should not call non forUser...

Merge "[NetworkScorerAppManager] system_server should not call non forUser Settings.Secure.get* methods"
parents a613458e 5d60e0a5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.server;
import android.Manifest.permission;
import android.annotation.Nullable;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.PermissionChecker;
@@ -404,7 +405,8 @@ public class NetworkScorerAppManager {
        }

        public int getSecureInt(Context context, String name, int defaultValue) {
            return Settings.Secure.getInt(context.getContentResolver(), name, defaultValue);
            final ContentResolver cr = context.getContentResolver();
            return Settings.Secure.getIntForUser(cr, name, defaultValue, cr.getUserId());
        }
    }
}