When reusing an app tab, we generally do not reload in the case
where the URL matches the old URL. However, in the case of a
voice search, both URLs are "", because the information is held
in UrlData.mVoiceIntent. If that field is not null, load the
Tab, which will load the new voice search.
Change-Id: I0ba60b1e482cf1fd1b95e4dab969527f18096cc1
// If the WebView has the same original url and is on that
// page, it can be reused.
boolean needsLoad =
- mTabControl.recreateWebView(appTab, urlData.mUrl);
+ mTabControl.recreateWebView(appTab, urlData.mUrl)
+ // If there is a voice intent in the UrlData, then
+ // recreateWebView may return false, but we still
+ // need to force a load.
+ || urlData.mVoiceIntent != null;
if (current != appTab) {
switchToTab(mTabControl.getTabIndex(appTab));