Fixed F-Droid repo search (#1400) + general search bugfixes

This commit is contained in:
Imran Remtulla
2024-02-18 17:43:24 -05:00
parent 64f8e2a57b
commit 4db205dd9a
4 changed files with 37 additions and 26 deletions

View File

@@ -213,7 +213,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
setState(() {
importInProgress = true;
});
if (values['url'] != source.hosts[0]) {
if (source.hosts.isEmpty || values['url'] != source.hosts[0]) {
source = sourceProvider.getSource(values['url'],
overrideSource: source.runtimeType.toString());
}