Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a163bdcf authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

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.
parent 5cb8d79f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment