From 09061a38bcef76a0c64319f4ed2a2d28b5ba7de1 Mon Sep 17 00:00:00 2001 From: Constantin Piber <59023762+cpiber@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:41:08 +0200 Subject: [PATCH] Negation missing in SystemProperties (#1433) --- .../src/main/java/android/os/SystemProperties.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AndroidCompat/src/main/java/android/os/SystemProperties.java b/AndroidCompat/src/main/java/android/os/SystemProperties.java index 2c092e0d8..e1af17e88 100644 --- a/AndroidCompat/src/main/java/android/os/SystemProperties.java +++ b/AndroidCompat/src/main/java/android/os/SystemProperties.java @@ -42,19 +42,19 @@ public class SystemProperties { return native_get(key); } private static int native_get_int(String key, int def) { - if(configModule.hasProperty(key)) + if(!configModule.hasProperty(key)) return def; else return configModule.getIntProperty(key); } private static long native_get_long(String key, long def) { - if(configModule.hasProperty(key)) + if(!configModule.hasProperty(key)) return def; else return configModule.getLongProperty(key); } private static boolean native_get_boolean(String key, boolean def) { - if(configModule.hasProperty(key)) + if(!configModule.hasProperty(key)) return def; else return configModule.getBooleanProperty(key); @@ -123,4 +123,4 @@ public class SystemProperties { } native_set(key, val); } -} \ No newline at end of file +}