We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f8d7a0 commit eba74d7Copy full SHA for eba74d7
1 file changed
app/src/main/kotlin/com/simplemobiletools/draw/models/MyPath.kt
@@ -15,14 +15,14 @@ import java.util.*
15
16
// https://stackoverflow.com/a/8127953
17
class MyPath : Path(), Serializable {
18
-
19
val actions = LinkedList<Action>()
20
21
private fun readObject(inputStream: ObjectInputStream) {
22
inputStream.defaultReadObject()
23
24
- for (action in actions) {
25
- action.perform(this)
+ val copiedActions = actions.map { it }
+ copiedActions.forEach {
+ it.perform(this)
26
}
27
28
0 commit comments