fix: 修改图层管理
This commit is contained in:
@@ -16,7 +16,7 @@ class LayerConfigUtils {
|
||||
|
||||
fun getLayerConfigList(): List<ImportConfig> {
|
||||
// 首先读取Shared文件,如果存在则直接返回,否则读取config文件
|
||||
return SPStaticUtils.getString(Constant.LAYER_MANAGER_CONFIG, null).let {
|
||||
return SPStaticUtils.getString(Constant.EVENT_LAYER_MANAGER_CHANGE, null).let {
|
||||
if (this!=null) {
|
||||
val result: List<ImportConfig> = gson.fromJson(it, object : TypeToken<List<ImportConfig>>(){}.type)
|
||||
result
|
||||
@@ -26,7 +26,7 @@ class LayerConfigUtils {
|
||||
}
|
||||
}
|
||||
|
||||
fun getLayerConfigListFromAssetsFile(): List<ImportConfig> {
|
||||
private fun getLayerConfigListFromAssetsFile(): List<ImportConfig> {
|
||||
val resultList = mutableListOf<ImportConfig>()
|
||||
if (omdbConfigFile.exists()) {
|
||||
val omdbConfiStr = FileIOUtils.readFile2String(omdbConfigFile)
|
||||
|
||||
Reference in New Issue
Block a user