From 18bd3e6f00c65c19c746452e4fc5d947be9a2b88 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 5 Sep 2021 18:20:10 +0800 Subject: [PATCH] =?UTF-8?q?rss=E8=B0=83=E8=AF=95=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 7 +++---- .../app/ui/book/source/debug/BookSourceDebugActivity.kt | 6 ++++-- app/src/main/res/layout/activity_source_debug.xml | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 25c6d6a52..f165a73f8 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -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次 diff --git a/app/src/main/java/io/legado/app/ui/book/source/debug/BookSourceDebugActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/debug/BookSourceDebugActivity.kt index a7b775f5a..e926b11e9 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/debug/BookSourceDebugActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/debug/BookSourceDebugActivity.kt @@ -25,7 +25,9 @@ class BookSourceDebugActivity : VMBaseActivity() 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 openOrCloseHelp(hasFocus) } + openOrCloseHelp(true) } @SuppressLint("SetTextI18n") diff --git a/app/src/main/res/layout/activity_source_debug.xml b/app/src/main/res/layout/activity_source_debug.xml index 3dfb93d53..4061274ec 100644 --- a/app/src/main/res/layout/activity_source_debug.xml +++ b/app/src/main/res/layout/activity_source_debug.xml @@ -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">