mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 21:30:16 +02:00
Fix broken search (#1006)
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user