OSDN Git Service

Don't enforce that search dialog is a singleton.
authorBjorn Bringert <bringert@android.com>
Mon, 8 Jun 2009 22:20:15 +0000 (23:20 +0100)
committerBjorn Bringert <bringert@android.com>
Mon, 8 Jun 2009 22:20:15 +0000 (23:20 +0100)
commit6e09858c0bd13a321ed716b670b361e62b1536e4
tree274fa1ee756e178d2d6e615733f8ae6976e4998a
parent540d7de241b39b28480bf4b1bf6870307935fd8b
Don't enforce that search dialog is a singleton.

There was code in PhoneWindowManager from last time when
the search dialog was a system dialog that caused an exception
if the search was added to the window manager twice.
Generally there should only be one search bar, but because
window manager calls are asynchronous and don't execute in order,
we can't be sure that a call to stopSearch() has removed the search
dialog before a subsequent call to startSearch() tries to add it again.

SearchManagerTest.testSearchManagerFastInvocations() crashed the system
process before this change.
phone/com/android/internal/policy/impl/PhoneWindowManager.java