diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2010-05-06 06:13:54 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2010-05-17 15:34:06 -0700 |
commit | 2b34599c39d2c04c242d2a0ed755705fc414541d (patch) | |
tree | e7fe238e922fe9bf6344d3a69ef5163f2cbd965a /src/com/android | |
parent | b2bb2c0cbdc7f57912a1c0a93cd4053c2895cb05 (diff) | |
download | packages_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.java | 7 |
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(); |