summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-07-15 11:13:48 -0700
committerJohn Reck <jreck@google.com>2011-07-15 11:33:12 -0700
commit2fd9d0e1db6c2f3bb364f651ef3b32189b7ef77d (patch)
tree5d78607eeddc93e6c0efd249ab4e80d9ba969dd7 /src/com/android
parent7ab75ee486cd0e316dda66d2c6a73b0de1f16332 (diff)
downloadpackages_apps_Browser-2fd9d0e1db6c2f3bb364f651ef3b32189b7ef77d.zip
packages_apps_Browser-2fd9d0e1db6c2f3bb364f651ef3b32189b7ef77d.tar.gz
packages_apps_Browser-2fd9d0e1db6c2f3bb364f651ef3b32189b7ef77d.tar.bz2
Inverted lab preference
Change-Id: I28636302e00a23ee65e2c63e5ebe4bebdc4576c4
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/BrowserSettings.java7
-rw-r--r--src/com/android/browser/PreferenceKeys.java1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 4d41426..dcc3269 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -205,6 +205,9 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
} else {
settings.setUserAgentString(USER_AGENTS[getUserAgent()]);
}
+
+ settings.setProperty("gfxInvertedScreen",
+ useInvertedRendering() ? "true" : "false");
}
/**
@@ -674,6 +677,10 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
return mPrefs.getBoolean(PREF_FULLSCREEN, false);
}
+ public boolean useInvertedRendering() {
+ return mPrefs.getBoolean(PREF_INVERTED, false);
+ }
+
// -----------------------------
// getter/setters for privacy_security_preferences.xml
// -----------------------------
diff --git a/src/com/android/browser/PreferenceKeys.java b/src/com/android/browser/PreferenceKeys.java
index 08ee91f..4174732 100644
--- a/src/com/android/browser/PreferenceKeys.java
+++ b/src/com/android/browser/PreferenceKeys.java
@@ -77,6 +77,7 @@ public interface PreferenceKeys {
static final String PREF_ENABLE_QUICK_CONTROLS = "enable_quick_controls";
static final String PREF_USE_INSTANT_SEARCH = "use_instant_search";
static final String PREF_FULLSCREEN = "fullscreen";
+ static final String PREF_INVERTED = "inverted";
// ----------------------
// Keys for privacy_security_preferences.xml