Fix #321; Update Simplified Chinese.

This commit is contained in:
Azuo
2021-08-14 00:55:37 +08:00
parent b081b9adbb
commit c26021de03
2 changed files with 75 additions and 36 deletions

View File

@ -35,7 +35,7 @@ import java.util.*
fun PackageManager.missingSystemFeature(name: String): Boolean = !hasSystemFeature(name)
fun Context.toast(message: String, long: Boolean = false) {
val toast = Toast.makeText(this, message, if (long) Toast.LENGTH_LONG else Toast.LENGTH_SHORT)
val toast = Toast.makeText(applicationContext, message, if (long) Toast.LENGTH_LONG else Toast.LENGTH_SHORT)
// toast.setGravity(Gravity.CENTER, 0, 0)
toast.show()
}