commit 905149f8bf2dc588224f9b25b9c76b9bab8c9594
parent c6f79bdd5bb83473334ff26efb52d86138825576
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Tue, 6 Jun 2023 20:54:00 +0200
fix(unlimited_snap_view_time): proto editor
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/util/protobuf/ProtoEditor.kt b/app/src/main/kotlin/me/rhunk/snapenhance/util/protobuf/ProtoEditor.kt
@@ -15,19 +15,19 @@ class ProtoEditor(
}
val id = path[currentIndex]
val output = ProtoWriter()
- val wires = mutableMapOf<Int, ByteArray>()
+ val wires = mutableListOf<Pair<Int, ByteArray>>()
rootReader.list { tag, value ->
if (tag == id) {
val childReader = rootReader.readPath(id)
if (childReader == null) {
- wires[tag] = value
+ wires.add(Pair(tag, value))
return@list
}
- wires[tag] = writeAtPath(path, currentIndex + 1, childReader, bufferToWrite)
+ wires.add(Pair(tag, writeAtPath(path, currentIndex + 1, childReader, bufferToWrite)))
return@list
}
- wires[tag] = value
+ wires.add(Pair(tag, value))
}
wires.forEach { (tag, value) ->