diff options
author | John Reck <jreck@google.com> | 2011-10-27 17:15:59 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-10-27 17:34:03 -0700 |
commit | ea17e784b39f50160eb92487f4b166a8fd98e8c2 (patch) | |
tree | 267210f696b9a509e05b2e1a6a4faa96890f5a3c /src/com | |
parent | 79e36dbe90997dbd2d276241bfac8cc2c2bac9f0 (diff) | |
download | packages_apps_browser-ea17e784b39f50160eb92487f4b166a8fd98e8c2.zip packages_apps_browser-ea17e784b39f50160eb92487f4b166a8fd98e8c2.tar.gz packages_apps_browser-ea17e784b39f50160eb92487f4b166a8fd98e8c2.tar.bz2 |
Don't set the upload type unless in debug
Bug: 5529012
Reduce unnecessary JNI
Change-Id: Ie1fc504bf8a159bf0ee5b26e89cb29b445ad7723
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index f92e53b..e2a521a 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -271,14 +271,18 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, settings.setUserAgentString(USER_AGENTS[getUserAgent()]); } + boolean useInverted = useInvertedRendering(); settings.setProperty(WebViewProperties.gfxInvertedScreen, - useInvertedRendering() ? "true" : "false"); - - settings.setProperty(WebViewProperties.gfxInvertedScreenContrast, - Float.toString(getInvertedContrast())); + useInverted ? "true" : "false"); + if (useInverted) { + settings.setProperty(WebViewProperties.gfxInvertedScreenContrast, + Float.toString(getInvertedContrast())); + } - settings.setProperty(WebViewProperties.gfxEnableCpuUploadPath, - enableCpuUploadPath() ? "true" : "false"); + if (isDebugEnabled()) { + settings.setProperty(WebViewProperties.gfxEnableCpuUploadPath, + enableCpuUploadPath() ? "true" : "false"); + } } /** |