mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 02:35:32 +08:00
修复一个可能崩溃的问题
This commit is contained in:
@@ -56,7 +56,7 @@ class IconPackParams(private val context: Context? = null, private val param: Pa
|
||||
val iconDatas
|
||||
get() = ArrayList<IconDataBean>().apply {
|
||||
storageDataJson?.also {
|
||||
if (it.isNotBlank())
|
||||
if (it.isNotBlank()) runCatching {
|
||||
JSONArray(it).also { array ->
|
||||
for (i in 0 until array.length()) runCatching {
|
||||
(array.get(i) as JSONObject).apply {
|
||||
@@ -74,6 +74,7 @@ class IconPackParams(private val context: Context? = null, private val param: Pa
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user