fix crash Android 8-13 NoSuchMethodError, prevent crash for missing card

This commit is contained in:
Anthony Calosa
2025-09-13 09:09:04 +08:00
parent b61044abb5
commit 02b7e408dc
4 changed files with 8 additions and 8 deletions

View File

@@ -878,7 +878,7 @@ public class StaticData {
}
}
}
// stream().toList() causes crash on Android, use Collectors.toList()
// stream().toList() causes crash on Android 8-13, use Collectors.toList()
List<String> NIF = new ArrayList<>(NIF_Q).stream().sorted().collect(Collectors.toList());
List<String> CNI = new ArrayList<>(CNI_Q).stream().sorted().collect(Collectors.toList());
List<String> TOK = new ArrayList<>(TOKEN_Q).stream().sorted().collect(Collectors.toList());