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.
Description
No description provided
Languages
Java
77.3%
Kotlin
9.2%
PowerBuilder
6.6%
C++
5.5%
AIDL
1%