summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/preferences/InvertedContrastPreview.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/preferences/InvertedContrastPreview.java')
-rw-r--r--src/com/android/browser/preferences/InvertedContrastPreview.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/preferences/InvertedContrastPreview.java b/src/com/android/browser/preferences/InvertedContrastPreview.java
index ed6eadf..2b8ad47 100644
--- a/src/com/android/browser/preferences/InvertedContrastPreview.java
+++ b/src/com/android/browser/preferences/InvertedContrastPreview.java
@@ -23,6 +23,7 @@ import android.webkit.WebSettingsClassic;
import android.webkit.WebViewClassic;
import com.android.browser.BrowserSettings;
+import com.android.browser.BrowserWebView;
import com.android.browser.WebViewProperties;
public class InvertedContrastPreview extends WebViewPreview {
@@ -75,7 +76,7 @@ public class InvertedContrastPreview extends WebViewPreview {
@Override
protected void updatePreview(boolean forceReload) {
- if (mWebView == null) return;
+ if (mWebView == null || !BrowserWebView.isClassic()) return;
WebSettingsClassic ws = WebViewClassic.fromWebView(mWebView).getSettings();
BrowserSettings bs = BrowserSettings.getInstance();