summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2012-05-16 16:43:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-16 16:43:17 -0700
commitdd684eb3e02f6ba0adc47c1aef38b1394c04a175 (patch)
treeff3cf88c38d9f9f4db73c3426d617c9855eee48c /policy
parentce01bd6e76fb984a703b62bdba0eb45f9714b25e (diff)
parent28e7320116dc7e428e877e7165553046bbe7cd41 (diff)
downloadframeworks_base-dd684eb3e02f6ba0adc47c1aef38b1394c04a175.zip
frameworks_base-dd684eb3e02f6ba0adc47c1aef38b1394c04a175.tar.gz
frameworks_base-dd684eb3e02f6ba0adc47c1aef38b1394c04a175.tar.bz2
am 28e73201: Merge "Revert "Add shortcut for voice search"" into jb-dev
* commit '28e7320116dc7e428e877e7165553046bbe7cd41': Revert "Add shortcut for voice search"
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index cc82edc..8ab148e 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -179,7 +179,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
static final int LONG_PRESS_HOME_NOTHING = 0;
static final int LONG_PRESS_HOME_RECENT_DIALOG = 1;
static final int LONG_PRESS_HOME_RECENT_SYSTEM_UI = 2;
- static final int LONG_PRESS_HOME_VOICE_SEARCH = 3;
// wallpaper is at the bottom, though the window manager may move it.
static final int WALLPAPER_LAYER = 2;
@@ -759,9 +758,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
mLongPressOnHomeBehavior > LONG_PRESS_HOME_RECENT_SYSTEM_UI) {
mLongPressOnHomeBehavior = LONG_PRESS_HOME_NOTHING;
}
- if (hasNavigationBar()) {
- mLongPressOnHomeBehavior = LONG_PRESS_HOME_VOICE_SEARCH;
- }
}
if (mLongPressOnHomeBehavior != LONG_PRESS_HOME_NOTHING) {
@@ -781,18 +777,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
} catch (RemoteException e) {
Slog.e(TAG, "RemoteException when showing recent apps", e);
}
- } else if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_VOICE_SEARCH) {
- Intent intent = new Intent(RecognizerIntent.ACTION_WEB_SEARCH);
- try {
- intent.setFlags(
- Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
- mContext.startActivity(intent);
- } catch (ActivityNotFoundException e) {
- Log.e(TAG, "Unable to launch. tag=" + TAG + " intent=" + intent, e);
- } catch (SecurityException e) {
- Log.e(TAG, "PhoneWindowManager does not have the permission to launch " +
- "tag=" + TAG + " intent=" + intent, e);
- }
}
}