Refactor widgets

This commit is contained in:
MM20
2023-04-10 01:15:27 +02:00
parent 2054386179
commit 3cda75bc77
37 changed files with 1153 additions and 347 deletions
@@ -0,0 +1,12 @@
package de.mm20.launcher2.ktx
import java.nio.ByteBuffer
import java.util.UUID
fun UUID.toBytes(): ByteArray {
val bytes = ByteArray(16)
val buffer = ByteBuffer.wrap(bytes)
buffer.putLong(mostSignificantBits)
buffer.putLong(leastSignificantBits)
return buffer.array()
}