Code example for WebView

Methods: invalidate, isShown

0
 
	} 
 
	@Override 
	public void onScaleChanged(WebView view, float oldScale, float newScale) {
		if (view.isShown()) {
			view.invalidate();
		} 
		super.onScaleChanged(view, oldScale, newScale);
	} 
 
	@Override 
	public void onPageFinished(WebView view, String url) {
		IncognitoModeActivity.onPageFinished(view, url);
		super.onPageFinished(view, url);
	} 
 
	@Override 
	public void onPageStarted(WebView view, String url, Bitmap favicon) {
		IncognitoModeActivity.onPageStarted(view, url, favicon);
		super.onPageStarted(view, url, favicon);