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

Test: manual verification
Change-Id: Ib1bd14b8655e62ef055e2e66f08c81e57ee2e72b
This commit is contained in:
Stanislav Zholnin
2019-03-07 17:40:14 +00:00
parent 94904dcb12
commit bb7daa567f

View File

@@ -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);
}
/**