Read the saved list state without a default for old versions

This commit is contained in:
2026-10-31 12:00:29 +02:00
parent 8f4cd6d7f2
commit c331c317ce
@@ -360,7 +360,7 @@ private class BlocklistStore(context: Context) {
val array = JSONArray(raw)
(0 until array.length()).map {
val o = array.getJSONObject(it)
RemoteList(o.getString("url"), o.getInt("count"), o.getLong("updated"), o.optBoolean("enabled", true))
RemoteList(o.getString("url"), o.getInt("count"), o.getLong("updated"), o.getBoolean("enabled"))
}
}.getOrDefault(emptyList())
}