Simplify WearOS app because this is such a cluster fuck and I've ran out of motivation.

This commit is contained in:
darken
2022-09-14 18:00:18 +02:00
committed by Matthias Urhahn
parent d7808009dc
commit 7dfea78c87
22 changed files with 540 additions and 1499 deletions
@@ -49,8 +49,9 @@ class PodDeviceCache @Inject constructor(
}
suspend fun loadMainDevice(): BleScanResult? = withContext(dispatcherProvider.IO) {
log(TAG) { "loadMainDevice()" }
log(TAG, VERBOSE) { "loadMainDevice()" }
lock.withLock {
if (!mainDeviceCacheFile.exists()) return@withLock null
try {
val raw = mainDeviceCacheFile.readText()
jsonAdapter.fromJson(raw)