Fixed crash on API < 16
This commit is contained in:
parent
cd0d9e2d94
commit
d3da19a261
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user