pull/2114/head
kunfei 2 years ago
parent 4861d71dc1
commit c7b484fced
  1. 3
      app/src/main/java/io/legado/app/help/DirectLinkUpload.kt

@ -45,8 +45,7 @@ object DirectLinkUpload {
} }
fun getRule(): Rule? { fun getRule(): Rule? {
val json = ACache.get(cacheDir = false).getAsString(ruleFileName) return getConfig() ?: defaultRule
return GSON.fromJsonObject<Rule>(json).getOrNull() ?: defaultRule
} }
fun getConfig(): Rule? { fun getConfig(): Rule? {

Loading…
Cancel
Save