diff options
| author | Martijn Coenen <maco@google.com> | 2016-11-22 09:49:15 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2016-11-22 09:49:15 +0000 |
| commit | 8c05ff96fb7614a8df41a6042416fa99e574b23f (patch) | |
| tree | 930077f0bd3d84a7761abfeaad30d57f0291895a /core/java | |
| parent | 3aa7fdd19a1a74780eb90c1b96db6c7ff9883d62 (diff) | |
| parent | 45c0c6939fb71a9f4bd7d9f0d5dcbe275e6db405 (diff) | |
Merge "Add SystemProperties.reportSyspropChanged()."
am: 45c0c6939f
Change-Id: I83890872ba76161cf2f9a35b23861ab21b452a0f
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/SystemProperties.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/SystemProperties.java b/core/java/android/os/SystemProperties.java index 1479035df978..e47c2380ca83 100644 --- a/core/java/android/os/SystemProperties.java +++ b/core/java/android/os/SystemProperties.java @@ -39,6 +39,7 @@ public class SystemProperties private static native boolean native_get_boolean(String key, boolean def); private static native void native_set(String key, String def); private static native void native_add_change_callback(); + private static native void native_report_sysprop_change(); /** * Get the value for the given key. @@ -151,4 +152,11 @@ public class SystemProperties } } } + + /* + * Notifies listeners that a system property has changed + */ + public static void reportSyspropChanged() { + native_report_sysprop_change(); + } } |
