OSDN Git Service

Treat voice searches from within the browser differently
authorLeon Scroggins <scroggo@google.com>
Wed, 7 Apr 2010 21:59:48 +0000 (17:59 -0400)
committerLeon Scroggins <scroggo@google.com>
Thu, 8 Apr 2010 14:02:17 +0000 (10:02 -0400)
commit4720868afa09efffadd845019f2d8268ae3f2c78
tree734e973072875bee7c628888c75114d24f7c64c4
parentab168ba86162b4e89e74d0a077b9c618437cbce4
Treat voice searches from within the browser differently
from those initiated from outside the browser.

Fix for http://b/issue?id=2546173

For a voice search initiated from outside the browser, an appId
will be attached.  In that case, try to reuse the application tab.
In TabControl.recreateWebView, treat this as if the url does not
match the old url, so a new WebView will be created with a fresh
history list, and the back key will exit the browser.  However, if
no appId is provided, simply reuse the current tab.  In this case,
the history list will be preserved, and pressing the back key will
return to earlier voice searches.

Change-Id: I9ec1efd56454ba94eb2bc348c4476fb6bd025dad
src/com/android/browser/BrowserActivity.java
src/com/android/browser/TabControl.java