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

Commit 69e87a6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use updated DeviceConfig API's new getters to simplify invocations."

parents 85876262 bb7daa56
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -127,8 +127,7 @@ public class AttentionManagerService extends SystemService {
    }

    private boolean isServiceEnabled() {
        final String enabled = DeviceConfig.getProperty(NAMESPACE, SERVICE_ENABLED);
        return enabled == null ? DEFAULT_SERVICE_ENABLED : "true".equals(enabled);
        return DeviceConfig.getBoolean(NAMESPACE, SERVICE_ENABLED, DEFAULT_SERVICE_ENABLED);
    }

    /**