package com.rhomobile.rhodes.webview;

import android.webkit.WebSettings;
import android.webkit.WebView;

import com.rhomobile.rhodes.Capabilities;
import com.rhomobile.rhodes.extmanager.IRhoConfig;

public class WebSettingsProviderKitKat extends
        WebSettingsProviderJellyBean implements IWebSettingsProvider {

    @Override
    public void fillSettings(WebSettings settings, IRhoConfig config) {
        super.fillSettings(settings, config);
        if (Capabilities.DEBUG_ENABLED) {
            WebView.setWebContentsDebuggingEnabled(true);
        }
    }

}

@@ -191,16 +191,68 @@
 oConfig;
+%0Aimport com.rhomobile.rhodes.util.PerformOnUiThread;
 %0A%0Apublic
@@ -507,110 +507,358 @@
     
- if (Capabilities.DEBUG_ENABLED) %7B%0A            WebView.setWebContentsDebuggingEnabled(true);%0A        %7D
+PerformOnUiThread.exec(new Runnable()%7B%0A%0A%09%09%09%09@Override%0A%09%09%09%09public void run() %7B%0A%09%09%09%09%09                if (Capabilities.DEBUG_ENABLED) %7B%0A%09%09%09%09                                                                WebView.setWebContentsDebuggingEnabled(true);%0A%09%09%09%09                                                        %7D%0A%09%09%09%09%09%0A%09%09%09%09                  %7D%0A%09%09%09%09%0A%09%09%09%7D);
 %0A   

Update WebSettingsProviderKitKat.java