Added autocomplete for F-Droid repos (#1681)

This commit is contained in:
Imran Remtulla
2024-06-28 21:03:53 -04:00
parent 9b6b7780d8
commit 2938cea419
4 changed files with 144 additions and 28 deletions

View File

@@ -312,7 +312,10 @@ class AddAppPageState extends State<AddAppPage> {
a.app.overrideSource)
.runtimeType ==
e.runtimeType)
.map((a) => Uri.parse(a.app.url).host)
.map((a) {
var uri = Uri.parse(a.app.url);
return '${uri.origin}${uri.path}';
})
],
defaultValue:
e.hosts.isNotEmpty ? e.hosts[0] : '',