diff options
Diffstat (limited to 'core/java/android/webkit')
| -rw-r--r-- | core/java/android/webkit/WebSettings.java | 4 | ||||
| -rw-r--r-- | core/java/android/webkit/WebView.java | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 642aa22..77f6776 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -1807,7 +1807,9 @@ public class WebSettings { * @hide */ public void setProperty(String key, String value) { - mWebView.nativeSetProperty(key, value); + if (mWebView.nativeSetProperty(key, value)) { + mWebView.contentInvalidateAll(); + } } /** diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 17dfbe0..5d776fd 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -9278,6 +9278,6 @@ public class WebView extends AbsoluteLayout */ private native boolean nativeScrollLayer(int layer, int newX, int newY); private native int nativeGetBackgroundColor(); - native void nativeSetProperty(String key, String value); + native boolean nativeSetProperty(String key, String value); native String nativeGetProperty(String key); } |
