mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-23 10:53:45 +02:00
Fix error in Vivo Store search when no result found (#2494)
This commit is contained in:
@@ -70,12 +70,14 @@ class VivoAppStore extends AppSource {
|
|||||||
throw NoReleasesError();
|
throw NoReleasesError();
|
||||||
}
|
}
|
||||||
Map<String, List<String>> results = {};
|
Map<String, List<String>> results = {};
|
||||||
var resultsJson = json['data']['appSearchResponse']['value'];
|
var resultsJson = json['data']['appSearchResponse']?['value'];
|
||||||
for (var item in (resultsJson as List<dynamic>)) {
|
if (resultsJson != null) {
|
||||||
results['$appDetailUrl${item['id']}'] = [
|
for (var item in (resultsJson as List<dynamic>)) {
|
||||||
item['title_zh'].toString(),
|
results['$appDetailUrl${item['id']}'] = [
|
||||||
item['developer'].toString(),
|
item['title_zh'].toString(),
|
||||||
];
|
item['developer'].toString(),
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user