From f615f710bb1a1c6fdccb538c1add4db5925d7799 Mon Sep 17 00:00:00 2001 From: Andy Huang Date: Thu, 7 Jun 2012 13:38:04 -0700 Subject: [PATCH] allow voice search in recent apps Voice search is now a fullscreen activity, and results now appear inline, so the user expectation is that it appears in the 'recent apps' list. Bug: 6491501 Change-Id: I1dfd27e19601a6876e7e1c31cbf2fea955cae899 --- src/com/android/launcher2/Launcher.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 659077f71b..e156c98953 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -1880,8 +1880,7 @@ public final class Launcher extends Activity (SearchManager) getSystemService(Context.SEARCH_SERVICE); ComponentName activityName = searchManager.getGlobalSearchActivity(); Intent intent = new Intent(RecognizerIntent.ACTION_WEB_SEARCH); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK - | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (activityName != null) { intent.setPackage(activityName.getPackageName()); } @@ -1889,8 +1888,7 @@ public final class Launcher extends Activity overridePendingTransition(R.anim.fade_in_fast, R.anim.fade_out_fast); } catch (ActivityNotFoundException e) { Intent intent = new Intent(RecognizerIntent.ACTION_WEB_SEARCH); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK - | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivitySafely(null, intent, "onClickVoiceButton"); } }