synchronized cache

This commit is contained in:
Milos Kozak 2022-01-09 18:13:17 +01:00
parent f0d2da72ae
commit f440394121

View file

@ -61,6 +61,7 @@ class ProfileStore(val injector: HasAndroidInjector, val data: JSONObject, val d
return ret return ret
} }
@Synchronized
fun getSpecificProfile(profileName: String): PureProfile? { fun getSpecificProfile(profileName: String): PureProfile? {
var profile: PureProfile? = null var profile: PureProfile? = null
val units = JsonHelper.safeGetStringAllowNull(data, "units", storeUnits()) val units = JsonHelper.safeGetStringAllowNull(data, "units", storeUnits())