From 0a786ee3e4fd3602f68ff0ffd9fdcb12e0efb646 Mon Sep 17 00:00:00 2001 From: vrepetsky <123964412+vrepetsky@users.noreply.github.com> Date: Sun, 29 Sep 2024 14:55:39 +0100 Subject: [PATCH] Update layer_settings_manager.cpp --- src/layer/layer_settings_manager.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/layer/layer_settings_manager.cpp b/src/layer/layer_settings_manager.cpp index 1722cff..391d339 100644 --- a/src/layer/layer_settings_manager.cpp +++ b/src/layer/layer_settings_manager.cpp @@ -33,21 +33,18 @@ #include #if defined(__ANDROID__) -/* +/* * Use the __system_property_read_callback API that appeared in * Android API level 26. If not avaible use the old __system_property_get function. */ // Weak function declaration, used only when not decalered in the Android headers -void __system_property_read_callback(const prop_info* info, - void (*callback)(void* cookie, - const char* name, - const char* value, - uint32_t serial), - void* cookie) __attribute__((weak)); +void __system_property_read_callback(const prop_info *info, + void (*callback)(void *cookie, const char *name, const char *value, uint32_t serial), + void *cookie) __attribute__((weak)); static std::string GetAndroidProperty(const char *name) { std::string output; - if(__system_property_read_callback != nullptr) { + if (__system_property_read_callback != nullptr) { const prop_info *pi = __system_property_find(name); if (pi) { __system_property_read_callback(