feat: 优化

pull/209/head
kunfei 5 years ago
parent a5e2fdb312
commit 0e818f62a4
  1. 2
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt
  2. 1
      app/src/main/res/values-zh-rHK/strings.xml
  3. 1
      app/src/main/res/values/strings.xml

@ -144,6 +144,7 @@ class RssSourceEditActivity :
add(EditEntity("ruleImage", rssSource?.ruleImage, R.string.r_image)) add(EditEntity("ruleImage", rssSource?.ruleImage, R.string.r_image))
add(EditEntity("ruleLink", rssSource?.ruleLink, R.string.r_link)) add(EditEntity("ruleLink", rssSource?.ruleLink, R.string.r_link))
add(EditEntity("ruleContent", rssSource?.ruleContent, R.string.r_content)) add(EditEntity("ruleContent", rssSource?.ruleContent, R.string.r_content))
add(EditEntity("style", rssSource?.style, R.string.r_style))
add(EditEntity("header", rssSource?.header, R.string.source_http_header)) add(EditEntity("header", rssSource?.header, R.string.source_http_header))
} }
adapter.editEntities = sourceEntities adapter.editEntities = sourceEntities
@ -169,6 +170,7 @@ class RssSourceEditActivity :
"ruleImage" -> source.ruleImage = it.value "ruleImage" -> source.ruleImage = it.value
"ruleLink" -> source.ruleLink = it.value "ruleLink" -> source.ruleLink = it.value
"ruleContent" -> source.ruleContent = it.value "ruleContent" -> source.ruleContent = it.value
"style" -> source.style = it.value
"header" -> source.header = it.value "header" -> source.header = it.value
} }
} }

@ -417,6 +417,7 @@
<string name="r_description">描述規則 (ruleDescription)</string> <string name="r_description">描述規則 (ruleDescription)</string>
<string name="r_image">圖片 url 規則 (ruleImage)</string> <string name="r_image">圖片 url 規則 (ruleImage)</string>
<string name="r_content">內容規則 (ruleContent)</string> <string name="r_content">內容規則 (ruleContent)</string>
<string name="r_style">樣式</string>
<string name="r_link">鏈接規則 (ruleLink)</string> <string name="r_link">鏈接規則 (ruleLink)</string>
<!-- source end--> <!-- source end-->

@ -417,6 +417,7 @@
<string name="r_description">描述规则(ruleDescription)</string> <string name="r_description">描述规则(ruleDescription)</string>
<string name="r_image">图片url规则(ruleImage)</string> <string name="r_image">图片url规则(ruleImage)</string>
<string name="r_content">内容规则(ruleContent)</string> <string name="r_content">内容规则(ruleContent)</string>
<string name="r_style">样式</string>
<string name="r_link">链接规则(ruleLink)</string> <string name="r_link">链接规则(ruleLink)</string>
<!-- source end--> <!-- source end-->

Loading…
Cancel
Save