mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 05:16:43 +02:00
Experiment with smarter version detection (#2324)
DO NOT merge without thorough testing
This commit is contained in:
@ -1335,7 +1335,11 @@ class AppsProvider with ChangeNotifier {
|
|||||||
var templateVersionFormats =
|
var templateVersionFormats =
|
||||||
findStandardFormatsForVersion(templateVersion, true);
|
findStandardFormatsForVersion(templateVersion, true);
|
||||||
var comparisonVersionFormats =
|
var comparisonVersionFormats =
|
||||||
findStandardFormatsForVersion(comparisonVersion, false);
|
findStandardFormatsForVersion(comparisonVersion, true);
|
||||||
|
if (comparisonVersionFormats.isEmpty) {
|
||||||
|
comparisonVersionFormats =
|
||||||
|
findStandardFormatsForVersion(comparisonVersion, false);
|
||||||
|
}
|
||||||
var commonStandardFormats =
|
var commonStandardFormats =
|
||||||
templateVersionFormats.intersection(comparisonVersionFormats);
|
templateVersionFormats.intersection(comparisonVersionFormats);
|
||||||
if (commonStandardFormats.isEmpty) {
|
if (commonStandardFormats.isEmpty) {
|
||||||
|
Reference in New Issue
Block a user