Fixed crash on API < 16

This commit is contained in:
Anthony Restaino 2014-08-27 21:39:18 -04:00
parent cd0d9e2d94
commit d3da19a261

View File

@ -82,9 +82,9 @@ public class LightningView {
mWebView.setAnimationCacheEnabled(false);
mWebView.setDrawingCacheEnabled(true);
mWebView.setBackgroundColor(activity.getResources().getColor(android.R.color.white));
mWebView.setBackground(null);
if (API > 15) {
mWebView.setBackground(null);
mWebView.getRootView().setBackground(null);
} else {
mWebView.getRootView().setBackgroundDrawable(null);