+better notes click processing
+android & universal UI tweaks +settings to change text and background color
This commit is contained in:
1 parent
f344befbdd
commit
85d97d5a90
13 files changed
+925
-193
No files matched your search
@@ -475,9 +475,18 @@ actual suspend fun saveScanDownloadsAutomatically(enabled: Boolean) = withContex
|
||||
|
||||
internal actual suspend fun loadLibraryFilter(): LibraryFilter = withContext(Dispatchers.IO) {
|
||||
openLibraryDatabase().useLibrary { db ->
|
||||
db.getAppFlag(LibraryFilterFlag)
|
||||
?.let { runCatching { LibraryFilter.valueOf(it) }.getOrNull() }
|
||||
?: LibraryFilter.MyLibrary
|
||||
val saved = db.getAppFlag(LibraryFilterFlag)
|
||||
when {
|
||||
saved == null -> {
|
||||
appendLibraryLog("warning library filter was not saved; using ${LibraryFilter.MyLibrary.name}")
|
||||
LibraryFilter.MyLibrary
|
||||
}
|
||||
else -> runCatching { LibraryFilter.valueOf(saved) }
|
||||
.getOrElse {
|
||||
appendLibraryLog("warning invalid saved library filter '$saved'; using ${LibraryFilter.MyLibrary.name}")
|
||||
LibraryFilter.MyLibrary
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user