OSDN Git Service

have "search" as the reason when dismissing system dialogs for search.
authorKarl Rosaen <krosaen@google.com>
Mon, 20 Jul 2009 21:00:29 +0000 (14:00 -0700)
committerKarl Rosaen <krosaen@google.com>
Mon, 20 Jul 2009 21:00:29 +0000 (14:00 -0700)
this way search can't dismiss itself.  can't use the constant because it is
in policy.  would rather leave it this way instead of moving constants for
system dialog dismissal to framework.

phone/com/android/internal/policy/impl/PhoneWindow.java

index d2d1421..db43a9c 100644 (file)
@@ -2510,7 +2510,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
         if (cb == null) {
             return false;
         } else {
-            sendCloseSystemWindows();
+            sendCloseSystemWindows("search");
             return cb.onSearchRequested();
         }
     }