diff options
| author | Jonathan Dixon <joth@google.com> | 2012-12-17 13:39:17 -0800 |
|---|---|---|
| committer | Jonathan Dixon <joth@google.com> | 2012-12-17 13:39:17 -0800 |
| commit | e1d6dfca80e4627a0c7fe46e38f904179c3edab3 (patch) | |
| tree | 10f62ca2d7f4567e8cb717ec626215eb9a4681f8 /src/com/android/browser/preferences | |
| parent | dd41509b73803f4f575b739b6276177fe9de7e80 (diff) | |
| download | packages_apps_Browser-e1d6dfca80e4627a0c7fe46e38f904179c3edab3.tar.gz packages_apps_Browser-e1d6dfca80e4627a0c7fe46e38f904179c3edab3.tar.bz2 packages_apps_Browser-e1d6dfca80e4627a0c7fe46e38f904179c3edab3.zip | |
De-classicify Browser
Removes the hard run-time dependency on WebViewClassic.
(Still needs visisbility of it to build though)
This is needed to enable chromium webview testing.
Change-Id: I290b6b23b2eac525537ebc3ef8007d681a67a169
Diffstat (limited to 'src/com/android/browser/preferences')
| -rw-r--r-- | src/com/android/browser/preferences/InvertedContrastPreview.java | 3 |
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 ed6eadf3c..2b8ad473c 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(); |
