summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NavigationBarPhone.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-05-03 11:37:58 -0700
committerMichael Kolb <kolby@google.com>2012-05-03 15:25:01 -0700
commit5ff5c8b88968fa794eab4b7a263cae25f05bd4d3 (patch)
tree5c64bedb6089f7516b1e34de38e6bde5ecc098d3 /src/com/android/browser/NavigationBarPhone.java
parentf6504f863a407c9b4615ac14de9b623775f65f69 (diff)
downloadpackages_apps_Browser-5ff5c8b88968fa794eab4b7a263cae25f05bd4d3.tar.gz
packages_apps_Browser-5ff5c8b88968fa794eab4b7a263cae25f05bd4d3.tar.bz2
packages_apps_Browser-5ff5c8b88968fa794eab4b7a263cae25f05bd4d3.zip
Remove voice search handling
Bug: 6439925 Change-Id: I1b7161a67fa0c20d87f147d6ed19c02e53093054
Diffstat (limited to 'src/com/android/browser/NavigationBarPhone.java')
-rw-r--r--src/com/android/browser/NavigationBarPhone.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/com/android/browser/NavigationBarPhone.java b/src/com/android/browser/NavigationBarPhone.java
index 60b228dcf..2517d624f 100644
--- a/src/com/android/browser/NavigationBarPhone.java
+++ b/src/com/android/browser/NavigationBarPhone.java
@@ -36,7 +36,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
StateListener, OnMenuItemClickListener, OnDismissListener {
private ImageView mStopButton;
- private ImageView mVoiceButton;
private ImageView mMagnify;
private ImageView mClearButton;
private Drawable mStopDrawable;
@@ -70,8 +69,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
super.onFinishInflate();
mStopButton = (ImageView) findViewById(R.id.stop);
mStopButton.setOnClickListener(this);
- mVoiceButton = (ImageView) findViewById(R.id.voice);
- mVoiceButton.setOnClickListener(this);
mClearButton = (ImageView) findViewById(R.id.clear);
mClearButton.setOnClickListener(this);
mMagnify = (ImageView) findViewById(R.id.magnify);
@@ -96,14 +93,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
}
@Override
- protected void setSearchMode(boolean voiceSearchEnabled) {
- boolean showvoicebutton = voiceSearchEnabled &&
- mUiController.supportsVoiceSearch();
- mVoiceButton.setVisibility(showvoicebutton ? View.VISIBLE :
- View.GONE);
- }
-
- @Override
public void onProgressStarted() {
super.onProgressStarted();
if (mStopButton.getDrawable() != mStopDrawable) {
@@ -157,8 +146,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
web.reload();
}
}
- } else if (v == mVoiceButton) {
- mUiController.startVoiceSearch();
} else if (v == mTabSwitcher) {
((PhoneUi) mBaseUi).toggleNavScreen();
} else if (mMore == v) {
@@ -229,7 +216,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
mStopButton.setVisibility(View.GONE);
mClearButton.setVisibility(View.GONE);
mMagnify.setVisibility(View.GONE);
- setSearchMode(mInVoiceMode);
mTabSwitcher.setVisibility(View.VISIBLE);
mTitleContainer.setBackgroundDrawable(null);
mMore.setVisibility(mNeedsMenu ? View.VISIBLE : View.GONE);
@@ -239,7 +225,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
mStopButton.setVisibility(View.VISIBLE);
mClearButton.setVisibility(View.GONE);
mMagnify.setVisibility(View.GONE);
- setSearchMode(true);
mTabSwitcher.setVisibility(View.GONE);
mMore.setVisibility(View.GONE);
mTitleContainer.setBackgroundDrawable(mTextfieldBgDrawable);
@@ -249,7 +234,6 @@ public class NavigationBarPhone extends NavigationBarBase implements
mStopButton.setVisibility(View.GONE);
mClearButton.setVisibility(View.VISIBLE);
mMagnify.setVisibility(View.VISIBLE);
- setSearchMode(false);
mTabSwitcher.setVisibility(View.GONE);
mMore.setVisibility(View.GONE);
mTitleContainer.setBackgroundDrawable(mTextfieldBgDrawable);