Browse Source

Fixed crash on API < 16

master
Anthony Restaino 10 years ago
parent
commit
d3da19a261
  1. 2
      src/acr/browser/lightning/LightningView.java

2
src/acr/browser/lightning/LightningView.java

@ -82,9 +82,9 @@ public class LightningView { @@ -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…
Cancel
Save