fix: 修改图层管理报错的问题

This commit is contained in:
xiaoyan 2023-05-05 14:43:17 +08:00
parent 464ca815c4
commit ca978100b2

View File

@ -17,7 +17,7 @@ class LayerConfigUtils {
fun getLayerConfigList(): List<ImportConfig> {
// 首先读取Shared文件如果存在则直接返回否则读取config文件
return SPStaticUtils.getString(Constant.EVENT_LAYER_MANAGER_CHANGE, null).let {
if (this!=null) {
if (it!=null) {
val result: List<ImportConfig> = gson.fromJson(it, object : TypeToken<List<ImportConfig>>(){}.type)
result
} else {