Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 872cf224 authored by Nicolas Roard's avatar Nicolas Roard
Browse files

Modify nativeSetProperty to return a boolean indicating if we

need to invalidate the content or not.

corresponding C++ CL: https://android-git.corp.google.com/g/#/c/129130/

bug:5167645
Change-Id: I48a3dd252e2a7ef24f3828e1e2955f86867423dd
parent 842d9de7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();
        }
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -9288,6 +9288,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);
}