|
|
@@ -8,7 +8,6 @@ import com.grkj.iscs.model.vo.card.CardInfoRespVO
|
|
|
import com.grkj.iscs.model.vo.system.SystemAttributePageRespVO
|
|
|
import com.grkj.iscs.model.vo.ticket.LockPointUpdateReqVO
|
|
|
import com.grkj.iscs.util.log.LogUtil
|
|
|
-import java.util.Collections
|
|
|
|
|
|
object SPUtils {
|
|
|
|
|
|
@@ -130,7 +129,7 @@ object SPUtils {
|
|
|
val sp = context.getSharedPreferences(SP_DATA, Context.MODE_PRIVATE)
|
|
|
val listJson = sp.getString(KEY_DATA_UPDATE_LOCK_POINT, null)
|
|
|
if (listJson.isNullOrEmpty()) {
|
|
|
- return Collections.emptyList()
|
|
|
+ return mutableListOf()
|
|
|
}
|
|
|
try {
|
|
|
val tempList: MutableList<LockPointUpdateReqVO> = Gson().fromJson(
|
|
|
@@ -140,7 +139,7 @@ object SPUtils {
|
|
|
return tempList
|
|
|
} catch (e: Exception) {
|
|
|
LogUtil.e("${e.message}")
|
|
|
- return Collections.emptyList()
|
|
|
+ return mutableListOf()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -164,7 +163,7 @@ object SPUtils {
|
|
|
val sp = context.getSharedPreferences(SP_DATA, Context.MODE_PRIVATE)
|
|
|
val listJson = sp.getString(KEY_DATA_UPDATE_KEY_RETURN, null)
|
|
|
if (listJson.isNullOrEmpty()) {
|
|
|
- return Collections.emptyList()
|
|
|
+ return mutableListOf()
|
|
|
}
|
|
|
try {
|
|
|
val tempList: MutableList<UpdateKeyReturnBO> =
|
|
|
@@ -172,7 +171,7 @@ object SPUtils {
|
|
|
return tempList
|
|
|
} catch (e: Exception) {
|
|
|
LogUtil.e("${e.message}")
|
|
|
- return Collections.emptyList()
|
|
|
+ return mutableListOf()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -194,7 +193,7 @@ object SPUtils {
|
|
|
val sp = context.getSharedPreferences(SP_ATTRIBUTE, Context.MODE_PRIVATE)
|
|
|
val listJson = sp.getString(KEY_SYSTEM_ATTRIBUTE, null)
|
|
|
if (listJson.isNullOrEmpty()) {
|
|
|
- return Collections.emptyList()
|
|
|
+ return mutableListOf()
|
|
|
}
|
|
|
try {
|
|
|
val tempList: MutableList<SystemAttributePageRespVO.Record> = Gson().fromJson(
|
|
|
@@ -204,7 +203,7 @@ object SPUtils {
|
|
|
return tempList
|
|
|
} catch (e: Exception) {
|
|
|
LogUtil.e("${e.message}")
|
|
|
- return Collections.emptyList()
|
|
|
+ return mutableListOf()
|
|
|
}
|
|
|
}
|
|
|
|