mirror of
https://github.com/fcitx5-android/fcitx5-android.git
synced 2026-08-02 20:16:06 +08:00
Fix EditorInfoWindow crash on empty contentMimeTypes
This commit is contained in:
parent
ae0f26b21a
commit
2148dee2ed
@ -93,7 +93,7 @@ object EditorInfoParser {
|
||||
|
||||
private fun parseStringArray(arr: Any?): String {
|
||||
if (arr == null) return NULL
|
||||
if (arr !is Array<*> || arr[0] !is String) return arr.toString()
|
||||
if (arr !is Array<*>) return arr.toString()
|
||||
return arr.joinToString()
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user