mirror of
https://github.com/stonega/tsacdop
synced 2025-02-13 10:00:49 +01:00
Change default serach engine to podcastindex.
This commit is contained in:
parent
e9c0e7eae9
commit
6dd8d37f77
@ -44,7 +44,7 @@ class MyHomePageDelegate extends SearchDelegate<int> {
|
||||
|
||||
Future<SearchEngine> _getSearchEngine() async {
|
||||
final storage = KeyValueStorage(searchEngineKey);
|
||||
final index = await storage.getInt(defaultValue: 0);
|
||||
final index = await storage.getInt();
|
||||
if (_searchEngine == null) {
|
||||
_searchEngine = SearchEngine.values[index];
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ import '../type/search_api/search_top_podcast.dart';
|
||||
import '../type/search_api/searchepisodes.dart';
|
||||
import '../type/search_api/searchpodcast.dart';
|
||||
|
||||
enum SearchEngine { listenNotes, podcastIndex }
|
||||
enum SearchEngine { podcastIndex, listenNotes }
|
||||
|
||||
class ListenNotesSearch {
|
||||
final _apiKey = environment['apiKey'];
|
||||
|
@ -49,7 +49,7 @@ class _LayoutSettingState extends State<LayoutSetting> {
|
||||
|
||||
Future<SearchEngine> _getSearchEngine() async {
|
||||
final storage = KeyValueStorage(searchEngineKey);
|
||||
final index = await storage.getInt(defaultValue: 0);
|
||||
final index = await storage.getInt();
|
||||
return SearchEngine.values[index];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user