boost performance on kitkat:

ignore result of javascript. it's slow and we only can use it on kitkat.
This commit is contained in:
Philipp Schaefer 2013-12-07 21:27:11 +01:00
parent 8e7e4ec14a
commit 3e00645f4a

View File

@ -165,12 +165,7 @@ public class IITC_WebView extends WebView {
public void loadJS(String js) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
evaluateJavascript(js, new ValueCallback<String>() {
@Override
public void onReceiveValue(String value) {
// maybe we want to add stuff here
}
});
evaluateJavascript(js, null);
} else {
// if in edit text mode, don't load javascript otherwise the keyboard closes.
HitTestResult testResult = getHitTestResult();