summaryrefslogtreecommitdiffstats
path: root/policy/com
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-03-02 23:32:01 -0800
committerDianne Hackborn <hackbod@google.com>2010-03-02 23:32:01 -0800
commitc20115c500ca2ca95b52b3163774e79fc8cc2040 (patch)
tree72182b216f3be5e2323c9befac93a07982c99c96 /policy/com
parent8b9dda28c9850b4a68b6958b8d4f751dd64157ad (diff)
downloadframeworks_base-c20115c500ca2ca95b52b3163774e79fc8cc2040.zip
frameworks_base-c20115c500ca2ca95b52b3163774e79fc8cc2040.tar.gz
frameworks_base-c20115c500ca2ca95b52b3163774e79fc8cc2040.tar.bz2
Fix issue #2445481: onNewIntent is called twice if SEARCH button is "long-pressed"
Diffstat (limited to 'policy/com')
-rw-r--r--policy/com/android/internal/policy/impl/PhoneWindow.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/com/android/internal/policy/impl/PhoneWindow.java b/policy/com/android/internal/policy/impl/PhoneWindow.java
index 55772b2..4e630df 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
}