Change settings observer for other processes to not pass a userhandle.

Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
This commit is contained in:
Siim Sammul
2021-05-04 18:40:50 +01:00
parent 28c4860610
commit 8aa9913e66

View File

@@ -1127,11 +1127,10 @@ public class BinderCallsStats implements BinderInternal.Observer {
private final int mProcessSource; private final int mProcessSource;
public SettingsObserver(Context context, BinderCallsStats binderCallsStats, public SettingsObserver(Context context, BinderCallsStats binderCallsStats,
int processSource, int userHandle) { int processSource) {
super(BackgroundThread.getHandler()); super(BackgroundThread.getHandler());
mContext = context; mContext = context;
context.getContentResolver().registerContentObserver(mUri, false, this, context.getContentResolver().registerContentObserver(mUri, false, this);
userHandle);
mBinderCallsStats = binderCallsStats; mBinderCallsStats = binderCallsStats;
mProcessSource = processSource; mProcessSource = processSource;
// Always kick once to ensure that we match current state // Always kick once to ensure that we match current state