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", "GB",
"TB" //really? "TB" //really?
) )
var size = byte.toDouble() var size = byte.toDouble(); var suffixIndex = 0
var suffixIndex = 0
while (size >= 1024) { while (size >= 1024) {
size /= 1024 size /= 1024

View File

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