From c20115c500ca2ca95b52b3163774e79fc8cc2040 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 2 Mar 2010 23:32:01 -0800 Subject: [PATCH] Fix issue #2445481: onNewIntent is called twice if SEARCH button is "long-pressed" --- policy/com/android/internal/policy/impl/PhoneWindow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/com/android/internal/policy/impl/PhoneWindow.java b/policy/com/android/internal/policy/impl/PhoneWindow.java index 55772b2ae7345..4e630df3115fa 100644 --- a/policy/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/com/android/internal/policy/impl/PhoneWindow.java @@ -1244,6 +1244,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { // activity; otherwise we will allow the normal short // press action to be performed. dispatcher.performedLongPress(event); + return true; } catch (ActivityNotFoundException e) { // Ignore }