mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-11 13:45:48 -04:00
Style[bta_profile]: add clarifying comments
This commit is contained in:
parent
988d3bbcb6
commit
fab0186cbe
@ -54,6 +54,9 @@ public class BTAUtils {
|
|||||||
private static List<BTAVersion> createVersionList(List<String> versionStrings, String buildType) {
|
private static List<BTAVersion> createVersionList(List<String> versionStrings, String buildType) {
|
||||||
ListIterator<String> iterator = versionStrings.listIterator(versionStrings.size());
|
ListIterator<String> iterator = versionStrings.listIterator(versionStrings.size());
|
||||||
ArrayList<BTAVersion> btaVersions = new ArrayList<>(versionStrings.size());
|
ArrayList<BTAVersion> btaVersions = new ArrayList<>(versionStrings.size());
|
||||||
|
// The original list is guaranteed to be in ascending order - the earliest versions
|
||||||
|
// are at the top, but for user convenience we need to put the newest versions at the top,
|
||||||
|
// so the BTAVersion list is made from the reverse of the string list.
|
||||||
while(iterator.hasPrevious()) {
|
while(iterator.hasPrevious()) {
|
||||||
String version = iterator.previous();
|
String version = iterator.previous();
|
||||||
if(version == null) continue;
|
if(version == null) continue;
|
||||||
@ -79,6 +82,8 @@ public class BTAUtils {
|
|||||||
List<String> untestedVersions = new ArrayList<>();
|
List<String> untestedVersions = new ArrayList<>();
|
||||||
for(String version : stringVersions) {
|
for(String version : stringVersions) {
|
||||||
if(version == null) break;
|
if(version == null) break;
|
||||||
|
// Checking for presence in testing array here to avoid accidentally adding nonexistent
|
||||||
|
// versions if some of them end up getting removed.
|
||||||
if(BTA_TESTED_VERSIONS.contains(version)) {
|
if(BTA_TESTED_VERSIONS.contains(version)) {
|
||||||
testedVersions.add(version);
|
testedVersions.add(version);
|
||||||
}else {
|
}else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user