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.setAnimationCacheEnabled(false);
|
||||||
mWebView.setDrawingCacheEnabled(true);
|
mWebView.setDrawingCacheEnabled(true);
|
||||||
mWebView.setBackgroundColor(activity.getResources().getColor(android.R.color.white));
|
mWebView.setBackgroundColor(activity.getResources().getColor(android.R.color.white));
|
||||||
mWebView.setBackground(null);
|
|
||||||
|
|
||||||
if (API > 15) {
|
if (API > 15) {
|
||||||
|
mWebView.setBackground(null);
|
||||||
mWebView.getRootView().setBackground(null);
|
mWebView.getRootView().setBackground(null);
|
||||||
} else {
|
} else {
|
||||||
mWebView.getRootView().setBackgroundDrawable(null);
|
mWebView.getRootView().setBackgroundDrawable(null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user