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

Commit bdc8eda1 authored by Dennis Shen's avatar Dennis Shen Committed by Android (Google) Code Review
Browse files

Merge "Make the staged namespace callback non async" into main

parents 80a9d8be 6f14026a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import static java.util.concurrent.Executors.newSingleThreadScheduledExecutor;

/**
 * Maps system settings to system properties.
@@ -345,7 +346,7 @@ public class SettingsToPropertiesMapper {
        // add sys prop sync callback for staged flag values
        DeviceConfig.addOnPropertiesChangedListener(
            NAMESPACE_REBOOT_STAGING,
            AsyncTask.THREAD_POOL_EXECUTOR,
            newSingleThreadScheduledExecutor(),
            (DeviceConfig.Properties properties) -> {

              for (String flagName : properties.getKeyset()) {