mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: Supporting auto importing fdroidrepos: repo addresses from clipboard (closes #200)
This commit is contained in:
parent
7126feecf9
commit
db08d75e7b
@ -158,7 +158,7 @@ class EditRepositorySheetX() : FullscreenBottomSheetDialogFragment(), RepoManage
|
||||
?.let { if (it.itemCount > 0) it else null }
|
||||
?.getItemAt(0)?.text?.toString().orEmpty()
|
||||
val (addressText, fingerprintText) = try {
|
||||
val uri = Uri.parse(URL(text).toString())
|
||||
val uri = Uri.parse(URL(text.replaceFirst("fdroidrepos:", "https:")).toString())
|
||||
val fingerprintText = uri.getQueryParameter("fingerprint")?.nullIfEmpty()
|
||||
?: uri.getQueryParameter("FINGERPRINT")?.nullIfEmpty()
|
||||
Pair(
|
||||
|
Loading…
x
Reference in New Issue
Block a user