Skip to content

Commit

Permalink
Attempt to optimize just a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart authored May 7, 2024
1 parent 8d46e76 commit c64eeea
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,9 @@ object TagArray {
(keyManager?.decrypt(this) ?: this)?.let { tagData ->
coroutineScope { (0 until count).map { async(Dispatchers.IO) {
try {
AmiiboData(tagData.clone()).let {
it.uID = Foomiibo.generateRandomUID()
dataList.add(it)
}
dataList.add(AmiiboData(tagData.clone()).apply {
uID = Foomiibo.generateRandomUID()
})
} catch (e: Exception) {
Debug.warn(e)
}
Expand Down Expand Up @@ -424,4 +423,4 @@ object TagArray {
fun writeBytesWithName(context: Context, input: Editable?, tagData: ByteArray?) : String? {
return writeBytesWithName(context, input?.toString(), "Backups", tagData)
}
}
}

0 comments on commit c64eeea

Please sign in to comment.