For the expanded iphone mode (in portait) only the searchEverywhere will be used
For the halfscreen everywhere + viewport
For the iPad the everywhere + viewport is always enabled
For the hidden only the viewport
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
During the searching the `searchCount` tracks the progress and notifies the observers (when 0 than completed).
When the crash When the `?edits` command is typed into the search field happens the `searchInViewport` m_onStarted callback is called but m_onStarted is not (in the core). m_onStarted is executed as a separate UI task. But for the `?edits` command it is not executed at all and produces the data race in the `searchCount` and breaks the UI updates for this debug command.
Since the `searchEverywhere` and `searchInViewport` are called simultaneously while typing the query there are no reason to track the `searchInViewport` searches. Only the `searchEverywhere` is enough. `searchInViewport` is not affecting the platform UI at all - its just show the marks on the map.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>