mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-27 10:41:03 +00:00
feat:added way to clear saved manga progress (#522)
This commit is contained in:
@@ -235,6 +235,19 @@ object PrefManager {
|
||||
apply()
|
||||
}
|
||||
}
|
||||
fun getAllCustomValsForMedia(prefix: String): Map<String, Any?> {
|
||||
val allEntries = mutableMapOf<String, Any?>()
|
||||
|
||||
irrelevantPreferences?.all?.forEach { (key, value) ->
|
||||
if (key.startsWith(prefix)) {
|
||||
allEntries[key] = value
|
||||
}
|
||||
}
|
||||
|
||||
return allEntries
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
fun <T> getLiveVal(prefName: PrefName, default: T): SharedPreferenceLiveData<T> {
|
||||
|
||||
Reference in New Issue
Block a user