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

Commit 6f14026a authored by Dennis Shen's avatar Dennis Shen
Browse files

Make the staged namespace callback non async

Bug: b/357633824
Test: m and test locally on device
Flag: com.android.aconfig_new_storage.enable_aconfig_storage_daemon
Change-Id: Ie77f22d58110fdca00e5c9f45da5a7423688313f
parent a5971de4
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()) {