title: Error: WebView.destroy() called while still attached
body: <p>I am getting this error when the device changes orientation:</p>
  
  <p><code>Error: WebView.destroy() called while still attached</code></p>
  
  <p>With this code:</p>
  
  <pre><code>protected void onDestroy()
  {
      if (adView != null)
      {
          adView.destroy();
      }
  }
  </code></pre>
  
  <p>What is the reason for this? How do I avoid this error?</p>