File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/modeling Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import com.onesignal.common.events.IEventNotifier
55import org.json.JSONArray
66import org.json.JSONObject
77import java.math.BigDecimal
8+ import java.util.*
89
910/* *
1011 * The base class for a [Model]. A model is effectively a map of data, each key in the map being
@@ -61,7 +62,7 @@ open class Model(
6162 get() = getStringProperty(::id.name)
6263 set(value) { setStringProperty(::id.name, value) }
6364
64- protected val data: MutableMap <String , Any ?> = mutableMapOf ()
65+ protected val data: MutableMap <String , Any ?> = Collections .synchronizedMap( mutableMapOf () )
6566 private val _changeNotifier = EventProducer <IModelChangedHandler >()
6667
6768 init {
You can’t perform that action at this time.
0 commit comments