mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-04 00:59:41 +07:00
Tutorial fix
This commit is contained in:
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.app"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 29
|
||||
versionCode 305
|
||||
versionName "3.1.3"
|
||||
versionCode 306
|
||||
versionName "3.1.4"
|
||||
}
|
||||
|
||||
// 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) {
|
||||
if (!UnCivGame.Current.settings.showTutorials) 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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user