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

Commit 844c96ba authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix device config listener setup in HistoricalRegistry" into main

parents 5ab53961 69f1f902
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -246,6 +246,10 @@ public class HistoricalRegistry implements HistoricalRegistryInterface {
        }

        mChainIdOffset = mShortIntervalHistoryHelper.getLargestAttributionChainId();

        // Set up listener for quantization, op flags or app ops list config for testing
        DeviceConfig.addOnPropertiesChangedListener(DeviceConfig.NAMESPACE_PRIVACY,
                AsyncTask.THREAD_POOL_EXECUTOR, this::setHistoryParameters);
        // Set up a listener to refresh history mode for testing.
        final Uri uri = Settings.Global.getUriFor(Settings.Global.APPOP_HISTORY_PARAMETERS);
        resolver.registerContentObserver(uri, false, new ContentObserver(
@@ -331,9 +335,6 @@ public class HistoricalRegistry implements HistoricalRegistryInterface {
            mShortIntervalAppOpsArray = getShortIntervalAppOpsList();
        }
        Arrays.sort(mShortIntervalAppOpsArray);

        DeviceConfig.addOnPropertiesChangedListener(DeviceConfig.NAMESPACE_PRIVACY,
                AsyncTask.THREAD_POOL_EXECUTOR, this::setHistoryParameters);
    }

    /**