6.6.2 - Alpha4 - 修复 Android 7.x Method#getParameters 兼容性问题

This commit is contained in:
SuperMonster003
2025-03-16 11:25:02 +08:00
parent f82726178d
commit 3fda91cbda
3 changed files with 5 additions and 5 deletions

View File

@@ -741,7 +741,7 @@ class ColorTable {
@JvmStatic
@JvmOverloads
fun getColorByName(colorName: String, suppressException: Boolean = false): Int? {
fun getColorByName(colorName: String, suppressExceptions: Boolean = false): Int? {
val name = colorName.replace("-", "_").uppercase()
arrayOf(
Android::class.java,
@@ -755,7 +755,7 @@ class ColorTable {
}
}
}
if (!suppressException) {
if (!suppressExceptions) {
throw NotFoundException(globalAppContext.getString(R.string.error_unknown_color_name, colorName))
}
return null