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

Commit 6d47f7fb authored by Siim Sammul's avatar Siim Sammul
Browse files

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

This is a direct cherry pick from internal with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14426680

Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
Merged-In: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
parent 6890be92
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -933,11 +933,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