From ca978100b21ddc3fc5b8f42e15ca5a041d00a4c7 Mon Sep 17 00:00:00 2001 From: xiaoyan Date: Fri, 5 May 2023 14:43:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=9B=BE=E5=B1=82?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/navinfo/omqs/tools/LayerConfigUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/navinfo/omqs/tools/LayerConfigUtils.kt b/app/src/main/java/com/navinfo/omqs/tools/LayerConfigUtils.kt index 41a96486..31aaced1 100644 --- a/app/src/main/java/com/navinfo/omqs/tools/LayerConfigUtils.kt +++ b/app/src/main/java/com/navinfo/omqs/tools/LayerConfigUtils.kt @@ -17,7 +17,7 @@ class LayerConfigUtils { fun getLayerConfigList(): List { // 首先读取Shared文件,如果存在则直接返回,否则读取config文件 return SPStaticUtils.getString(Constant.EVENT_LAYER_MANAGER_CHANGE, null).let { - if (this!=null) { + if (it!=null) { val result: List = gson.fromJson(it, object : TypeToken>(){}.type) result } else {