mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-30 17:51:37 -05:00
java.net.URL barfs on custom URL schemes, and making it handle them is really hard. Basically, there needs to be a Handler stub class, then URL.setURLStreamHandlerFactory() must run when F-Droid starts, since it has to be set before any URL instance is used. This all leaves some weird logic that gives the false impression that URLConnection will handle these custom schemes. Switching to Uri/urlString throughout the code matches the other classes that use urlString as the unique ID, and this doesn't add more lines of code.