Fix #211 - don't force every incoming intent to be a repo intent.

This commit is contained in:
Peter Serwylo 2015-04-02 00:12:32 +11:00
parent 0a515dfae1
commit ead4f449d6

View File

@ -73,6 +73,12 @@ public class NewRepoConfig {
uri = Uri.parse(uri.toString().toLowerCase(Locale.ENGLISH));
}
String path = uri.getPath();
if (path == null || !(path.contains("/fdroid/archive") || path.contains("/fdroid/repo"))) {
isValidRepo = false;
return;
}
// make scheme and host lowercase so they're readable in dialogs
scheme = scheme.toLowerCase(Locale.ENGLISH);
host = host.toLowerCase(Locale.ENGLISH);