diff --git a/lib/app_sources/fdroidrepo.dart b/lib/app_sources/fdroidrepo.dart index 6152c2b..e61d544 100644 --- a/lib/app_sources/fdroidrepo.dart +++ b/lib/app_sources/fdroidrepo.dart @@ -8,6 +8,7 @@ class FDroidRepo extends AppSource { FDroidRepo() { name = tr('fdroidThirdPartyRepo'); canSearch = true; + excludeFromMassSearch = true; neverAutoSelect = true; additionalSourceAppSpecificSettingFormItems = [ diff --git a/lib/pages/add_app.dart b/lib/pages/add_app.dart index bbe82ad..41d047c 100644 --- a/lib/pages/add_app.dart +++ b/lib/pages/add_app.dart @@ -153,8 +153,7 @@ class _AddAppPageState extends State { overrideSource: pickedSourceOverride, inferAppIdIfOptional: inferAppIdIfOptional); // Only download the APK here if you need to for the package ID - if (isTempId(app) && - app.additionalSettings['trackOnly'] != true) { + if (isTempId(app) && app.additionalSettings['trackOnly'] != true) { // ignore: use_build_context_synchronously var apkUrl = await appsProvider.confirmApkUrl(app, context); if (apkUrl == null) { @@ -260,8 +259,9 @@ class _AddAppPageState extends State { searching = true; }); try { - var results = await Future.wait( - sourceProvider.sources.where((e) => e.canSearch).map((e) async { + var results = await Future.wait(sourceProvider.sources + .where((e) => e.canSearch && !e.excludeFromMassSearch) + .map((e) async { try { return await e.search(searchQuery); } catch (err) { diff --git a/lib/pages/import_export.dart b/lib/pages/import_export.dart index 200ff7a..f99efb5 100644 --- a/lib/pages/import_export.dart +++ b/lib/pages/import_export.dart @@ -141,7 +141,8 @@ class _ImportExportPageState extends State { } }); appsProvider.addMissingCategories(settingsProvider); - showMessage(tr('importedX', args: [plural('apps', value)]), context); + showMessage( + tr('importedX', args: [plural('apps', value)]), context); }); } else { // User canceled the picker diff --git a/lib/providers/source_provider.dart b/lib/providers/source_provider.dart index ce07727..0285aa7 100644 --- a/lib/providers/source_provider.dart +++ b/lib/providers/source_provider.dart @@ -494,6 +494,7 @@ abstract class AppSource { } bool canSearch = false; + bool excludeFromMassSearch = false; List searchQuerySettingFormItems = []; Future>> search(String query, {Map querySettings = const {}}) { @@ -605,7 +606,8 @@ class SourceProvider { } } if (source == null) { - for (var s in sources.where((element) => element.host == null && !element.neverAutoSelect)) { + for (var s in sources.where( + (element) => element.host == null && !element.neverAutoSelect)) { try { s.sourceSpecificStandardizeURL(url); source = s;