Fix broken search (#1006)

This commit is contained in:
Imran Remtulla
2023-10-14 13:25:26 -04:00
parent a726b09f26
commit 9506c11951
4 changed files with 10 additions and 6 deletions

View File

@@ -153,8 +153,7 @@ class _AddAppPageState extends State<AddAppPage> {
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<AddAppPage> {
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) {

View File

@@ -141,7 +141,8 @@ class _ImportExportPageState extends State<ImportExportPage> {
}
});
appsProvider.addMissingCategories(settingsProvider);
showMessage(tr('importedX', args: [plural('apps', value)]), context);
showMessage(
tr('importedX', args: [plural('apps', value)]), context);
});
} else {
// User canceled the picker