title: Android - Hiding TitleBar after WebView Loads
body: <p>I currently have a WebView in an app I am working on and after each page loads in the WebView I would like to hide the TitleBar. I have looked at this <a href="https://stackoverflow.com/questions/3092291/android-the-progress-bar-in-the-windows-title-does-not-display">question</a> and the <a href="https://stackoverflow.com/q/3092291/1024787">answer</a> looks like it should do exactly what I want, however the TitleBar is never hidden after the page finishes loading. </p>
  
  <p>The code I am using is the same as the answer I have linked to, but I have also included it bellow. I can confirm that onProgressChanged is being called and that progress does get reported as 100 when the page finishes loading, but setProgressBarIndeterminateVisibility(false) and setProgressBarVisibility(false) both seem to do nothing. I am using requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) and requestWindowFeature(Window.FEATURE_PROGRESS) before I sent content. </p>
  
  <p>I have tested this on Android 2.3 and 4.1 and the result is the same for both, the TitleBar is not hidden.</p>
  
  <pre><code>mWebView.setWebChromeClient(new WebChromeClient() {
              @Override
              public void onProgressChanged(WebView view, int progress) {
                  setProgress(progress * 100);
                  if(progress == 100) {
                      setProgressBarIndeterminateVisibility(false);
                      setProgressBarVisibility(false);
                  }
              }
  });
  </code></pre>