Fixed language selection based on locale

This commit is contained in:
Pupil
2020-01-13 20:53:27 +09:00
parent ee87122bb2
commit 93228459d7
3 changed files with 5 additions and 6 deletions

View File

@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":31,"versionName":"4.2","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":32,"versionName":"4.3","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]

View File

@@ -49,8 +49,7 @@ fun byteToString(byte: Long, precision : Int = 1) : String {
"GB",
"TB" //really?
)
var size = byte.toDouble()
var suffixIndex = 0
var size = byte.toDouble(); var suffixIndex = 0
while (size >= 1024) {
size /= 1024

View File

@@ -93,9 +93,9 @@ fun checkUpdate(context: AppCompatActivity, force: Boolean = false) {
fun extractReleaseNote(update: JsonObject, locale: Locale) : String {
val markdown = update["body"]!!.content
val target = when(locale) {
Locale.KOREAN -> "한국어"
Locale.JAPANESE -> "日本語"
val target = when(locale.language) {
"ko" -> "한국어"
"ja" -> "日本語"
else -> "English"
}