title: Android: How can I know CSS injection is complete?
body: <p>I am trying to show my webview only after I inject the CSS file to the HTML.
  I have tried to put it on onPageCommitVisible function, but it works only 23 apis andd above. Someone knows how can I show the webview only after the CSS has fininshed to load? Now it "jumps" and I see the original CSS for the first one second, before the new one is replaced. </p>
  
  <pre><code>@Override
          public void onPageFinished(WebView view, String url) {
              Utils.logDebug(this, "Page finished");
              if (android.os.Build.VERSION.SDK_INT &lt; 23) {
                  injectCSS(view);
              }
              super.onPageFinished(view, url);
              showWebView(true);
             onPageChange();
          }
  </code></pre>
  
  <p>This is my InjestCSS function:</p>
  
  <pre><code>private void injectCSS(WebView webView) {
              try {
                  webView.loadUrl("javascript:(function() {" +
                          "var css = document.createElement(\"style\");\n" +
                          "css.type = \"text/css\";\n" +
                          "css.innerHTML = \"" + readFileAsString() + "\";\n" +
                          "document.body.appendChild(css);" +
                          "})()");
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
  </code></pre>
  
  <p>This function inject the CSS code to the HTML, as you can see in the function. </p>