mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 11:16:12 -04:00
Simplify WearOS app because this is such a cluster fuck and I've ran out of motivation.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user