summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2010-05-06 06:13:54 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2010-05-17 15:34:06 -0700
commit2b34599c39d2c04c242d2a0ed755705fc414541d (patch)
treee7fe238e922fe9bf6344d3a69ef5163f2cbd965a /src/com/android
parentb2bb2c0cbdc7f57912a1c0a93cd4053c2895cb05 (diff)
downloadpackages_apps_Browser-2b34599c39d2c04c242d2a0ed755705fc414541d.zip
packages_apps_Browser-2b34599c39d2c04c242d2a0ed755705fc414541d.tar.gz
packages_apps_Browser-2b34599c39d2c04c242d2a0ed755705fc414541d.tar.bz2
Adding accessibility content provider responsible for user script injection
Change-Id: I3ce7f684b69cc8e904dd4cf1f557b20987e8c6a5
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/BrowserActivity.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index bee06b5..68ea248 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -87,6 +87,7 @@ import android.view.Window;
import android.view.WindowManager;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.MenuItem.OnMenuItemClickListener;
+import android.view.accessibility.AccessibilityManager;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import android.webkit.DownloadListener;
@@ -186,7 +187,11 @@ public class BrowserActivity extends Activity
BitmapFactory.setDefaultConfig(Bitmap.Config.ARGB_8888);
}
- setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
+ if (AccessibilityManager.getInstance(this).isEnabled()) {
+ setDefaultKeyMode(DEFAULT_KEYS_DISABLE);
+ } else {
+ setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
+ }
mResolver = getContentResolver();