diff options
| author | Jonathan Dixon <joth@google.com> | 2012-02-24 00:13:06 +0000 |
|---|---|---|
| committer | Jonathan Dixon <joth@google.com> | 2012-03-02 11:18:30 +0000 |
| commit | 4d2fcaba7fb8eb1723943ac9a10e76d509330bd1 (patch) | |
| tree | 19a8905db9aa0aad4a60c1c3ef4fd7506c2089ad /src/com/android/browser/preferences | |
| parent | f9a4c8405898fa55be50ee4b682f7e97b054a41f (diff) | |
| download | packages_apps_Browser-4d2fcaba7fb8eb1723943ac9a10e76d509330bd1.tar.gz packages_apps_Browser-4d2fcaba7fb8eb1723943ac9a10e76d509330bd1.tar.bz2 packages_apps_Browser-4d2fcaba7fb8eb1723943ac9a10e76d509330bd1.zip | |
Fixup browser to use WebView proxy
Has to escape out to WebViewClassic whenever it needs a hidden API.
Interdepends on https://android-git.corp.google.com/g/165608
Change-Id: Ic61dd7f57f75381864075605d5901f2688648cbd
Diffstat (limited to 'src/com/android/browser/preferences')
| -rw-r--r-- | src/com/android/browser/preferences/InvertedContrastPreview.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/browser/preferences/InvertedContrastPreview.java b/src/com/android/browser/preferences/InvertedContrastPreview.java index c290daf93..ba004213b 100644 --- a/src/com/android/browser/preferences/InvertedContrastPreview.java +++ b/src/com/android/browser/preferences/InvertedContrastPreview.java @@ -19,7 +19,8 @@ package com.android.browser.preferences; import android.content.Context; import android.text.TextUtils; import android.util.AttributeSet; -import android.webkit.WebSettings; +import android.webkit.WebSettingsClassic; +import android.webkit.WebViewClassic; import com.android.browser.BrowserSettings; import com.android.browser.WebViewProperties; @@ -76,7 +77,7 @@ public class InvertedContrastPreview extends WebViewPreview { protected void updatePreview() { if (mWebView == null) return; - WebSettings ws = mWebView.getSettings(); + WebSettingsClassic ws = WebViewClassic.fromWebView(mWebView).getSettings(); BrowserSettings bs = BrowserSettings.getInstance(); ws.setProperty(WebViewProperties.gfxInvertedScreen, bs.useInvertedRendering() ? "true" : "false"); |
