Auto-select direct APK source for URLs ending in '.apk' (#1820)

This commit is contained in:
Imran Remtulla
2024-09-08 02:51:11 -04:00
parent e019c8027b
commit 0e46a83843
24 changed files with 39 additions and 25 deletions

View File

@@ -472,7 +472,7 @@ abstract class AppSource {
//
}
String sourceSpecificStandardizeURL(String url) {
String sourceSpecificStandardizeURL(String url, {bool forSelection = false}) {
throw NotImplementedError();
}
@@ -809,7 +809,7 @@ class SourceProvider {
for (var s in sources.where(
(element) => element.hosts.isEmpty && !element.neverAutoSelect)) {
try {
s.sourceSpecificStandardizeURL(url);
s.sourceSpecificStandardizeURL(url, forSelection: true);
source = s;
break;
} catch (e) {