mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Tutorial fix
This commit is contained in:
parent
4baa7b6105
commit
222e4ad4b5
@ -21,8 +21,8 @@ android {
|
|||||||
applicationId "com.unciv.app"
|
applicationId "com.unciv.app"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 305
|
versionCode 306
|
||||||
versionName "3.1.3"
|
versionName "3.1.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Had to add this crap for Travis to build, it wanted to sign the app
|
// Had to add this crap for Travis to build, it wanted to sign the app
|
||||||
|
@ -28,8 +28,14 @@ class Tutorials{
|
|||||||
fun displayTutorials(name: String, stage: Stage) {
|
fun displayTutorials(name: String, stage: Stage) {
|
||||||
if (!UnCivGame.Current.settings.showTutorials) return
|
if (!UnCivGame.Current.settings.showTutorials) return
|
||||||
if (UnCivGame.Current.settings.tutorialsShown.contains(name)) return
|
if (UnCivGame.Current.settings.tutorialsShown.contains(name)) return
|
||||||
val texts = getTutorials(name, UnCivGame.Current.settings.language)
|
|
||||||
tutorialTexts.add(Tutorial(name,texts))
|
var texts: ArrayList<String>
|
||||||
|
try {
|
||||||
|
texts = getTutorials(name, UnCivGame.Current.settings.language)
|
||||||
|
} catch (ex: Exception) {
|
||||||
|
texts = ArrayList<String>().apply { add("Could not find matching tutorial!") }
|
||||||
|
}
|
||||||
|
tutorialTexts.add(Tutorial(name, texts))
|
||||||
if (!isTutorialShowing) displayTutorial(stage)
|
if (!isTutorialShowing) displayTutorial(stage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user