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

Commit 1740d2d4 authored by Ling Ma's avatar Ling Ma
Browse files

Simplify reading deviceConfig

To run the callback directly instead of wrapping the callback in a
runnable to be executed.

Bug: 281925812
Test: basic manual
Change-Id: I0cd18ee58bb59a50ae3e8f85186a4d8511652394
parent aff4b1a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@ public class DataConfigManager extends Handler {

        // Register for device config update
        DeviceConfig.addOnPropertiesChangedListener(
                DeviceConfig.NAMESPACE_TELEPHONY, this::post,
                DeviceConfig.NAMESPACE_TELEPHONY, Runnable::run,
                properties -> {
                    if (TextUtils.equals(DeviceConfig.NAMESPACE_TELEPHONY,
                            properties.getNamespace())) {