// Old WebKit updating here
 @Override
 public void invalidate(int l, int t, int r, int b) {
   // Log.i(TAG, "MyWebView.invalidate(int l, int t, int r, int b) "+l+", "+t+", "+r+", "+b+
   //    "; width="+width_+", height="+height_+"; scrollX="+getScrollX()+",
   // scrollY="+getScrollY());
   super.invalidate(l, t, r, b);
   int my_r = getScrollX() + getWidth();
   int my_b = getScrollY() + getHeight();
   // Check that the invalidated rectangle actually visible
   if (l > my_r || t > my_b) {
     // Log.i(TAG, "MyWebView.invalidate: ignoring invisible rectangle");
     return;
   }
   invalidateOffscreenView();
 }
Пример #2
0
 protected void refreshWebView() {
   WebView web = getWebView();
   if (web != null) {
     web.invalidate();
   }
 }
 // Old & new WebKit updating
 @Override
 public void invalidate() {
   // Log.i(TAG, "MyWebView.invalidate(void)");
   super.invalidate();
   invalidateOffscreenView();
 }
 // Old WebKit updating here
 @Override
 public void invalidate(Rect dirty) {
   Log.i(TAG, "MyWebView.invalidate(Rect dirty)");
   super.invalidate(dirty);
   invalidateOffscreenView();
 }