[carplay] Reset search mode to handle switching from iOS

Fixes bug #1790

Signed-off-by: eisa01 <eisa01@gmail.com>
This commit is contained in:
eisa01
2025-09-07 22:16:51 +02:00
committed by Yannik Bloscheck
parent b7d275eda8
commit d583b99683

View File

@@ -32,6 +32,7 @@ API_AVAILABLE(ios(12.0))
self.lastResults = @[]; self.lastResults = @[];
self.completionHandler = completionHandler; self.completionHandler = completionHandler;
/// @todo Didn't find pure category request in CarPlay. /// @todo Didn't find pure category request in CarPlay.
[MWMSearch setSearchMode:SearchModeEverywhere];
SearchQuery * query = [[SearchQuery alloc] init:text locale:inputLocale source:SearchTextSourceTypedText]; SearchQuery * query = [[SearchQuery alloc] init:text locale:inputLocale source:SearchTextSourceTypedText];
[MWMSearch searchQuery:query]; [MWMSearch searchQuery:query];
} }