Skip to content
Snippets Groups Projects
Commit 7428b9a0 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Fix get offline expert word

parent 28b7e639
No related branches found
No related tags found
1 merge request!14Resolve "Fix offline-expert game mode"
Pipeline #1219 passed
......@@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
app.versionName=1.1.5
app.versionCode=5
app.versionName=1.1.6
app.versionCode=6
......@@ -74,7 +74,7 @@ class RandomPick {
Future _waitList() => Future(() {
final completer = Completer();
int indexRandom = random.nextInt(630000);
int indexRandom = random.nextInt(list_french_words.length);
completer.complete(list_french_words.sublist(indexRandom, indexRandom + 1).join('\n'));
return completer.future;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment