Back to project page SevenWonders.
The source code is released under:
Apache License
If you think the Android project SevenWonders listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package skylight1.sevenwonders.social; /* w w w .ja va 2s . c o m*/ import android.content.Context; import android.util.AttributeSet; import android.webkit.WebView; public class NoNPEWebView extends WebView { public NoNPEWebView(Context context) { super(context); } public NoNPEWebView(Context context, AttributeSet attrs) { super(context, attrs); } public NoNPEWebView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void onWindowFocusChanged(boolean hasWindowFocus) { try { super.onWindowFocusChanged(hasWindowFocus); } catch(NullPointerException e) { //ALog.e(e, "Eating exception thrown by WebView#onWindowFocusChanged to prevent crash."); } } }