rss调试界面修复

pull/1296/head^2
gedoor 3 years ago
parent d4da19e5d2
commit 18bd3e6f00
  1. 7
      app/src/main/assets/updateLog.md
  2. 6
      app/src/main/java/io/legado/app/ui/book/source/debug/BookSourceDebugActivity.kt
  3. 1
      app/src/main/res/layout/activity_source_debug.xml

@ -15,10 +15,9 @@
**2021/09/05**
1. 采用exoPlayer播放音频,支持更多格式
2. js规则内的@get,@put,{{}},不再在拆分时替换,都有对应的java函数,可以留着解析url时实时运算
3. 替换不再阻塞
4. 修复详情页初始化:规则bug
5. 书源内的并发率生效,两种格式
2. 替换不再阻塞
3. 修复详情页初始化:规则bug
4. 书源内的并发率生效,两种格式
* 时间 格式: 如 500, 访问间隔500毫秒
* 次数/时间 格式: 如 5/60000, 每分钟最多访问5次

@ -25,7 +25,9 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
override val viewModel by viewModels<BookSourceDebugModel>()
private lateinit var adapter: BookSourceDebugAdapter
private lateinit var searchView: SearchView
private val searchView: SearchView by lazy {
binding.titleBar.findViewById(R.id.search_view)
}
private val qrCodeResult = registerForActivityResult(QrCodeResult()) {
it?.let {
startSearch(it)
@ -33,7 +35,6 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
}
override fun onActivityCreated(savedInstanceState: Bundle?) {
searchView = binding.titleBar.findViewById(R.id.search_view)
initRecyclerView()
initSearchView()
viewModel.init(intent.getStringExtra("key")) {
@ -75,6 +76,7 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
searchView.setOnQueryTextFocusChangeListener { _, hasFocus ->
openOrCloseHelp(hasFocus)
}
openOrCloseHelp(true)
}
@SuppressLint("SetTextI18n")

@ -39,6 +39,7 @@
android:id="@+id/help"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
app:layout_constraintTop_toBottomOf="@+id/title_bar">
<LinearLayout

Loading…
Cancel
Save