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">