mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-07 03:05:51 +08:00
修复一个可能崩溃的问题
This commit is contained in:
@@ -56,7 +56,7 @@ class IconPackParams(private val context: Context? = null, private val param: Pa
|
|||||||
val iconDatas
|
val iconDatas
|
||||||
get() = ArrayList<IconDataBean>().apply {
|
get() = ArrayList<IconDataBean>().apply {
|
||||||
storageDataJson?.also {
|
storageDataJson?.also {
|
||||||
if (it.isNotBlank())
|
if (it.isNotBlank()) runCatching {
|
||||||
JSONArray(it).also { array ->
|
JSONArray(it).also { array ->
|
||||||
for (i in 0 until array.length()) runCatching {
|
for (i in 0 until array.length()) runCatching {
|
||||||
(array.get(i) as JSONObject).apply {
|
(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