fix: 修改图层管理报错的问题
This commit is contained in:
parent
464ca815c4
commit
ca978100b2
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user