pull/37/head
kunfei 5 years ago
parent 00a68d4765
commit fd6b475edf
  1. 1
      app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt
  2. 14
      app/src/main/res/menu/book_search.xml
  3. 1
      app/src/main/res/values/strings.xml

@ -176,6 +176,7 @@ class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_book_se
groups.map {
menu?.add(R.id.source_group, Menu.NONE, Menu.NONE, it)
}
menu?.setGroupCheckable(R.id.source_group, true, true)
}
private fun upHistory(key: String? = null) {

@ -4,20 +4,14 @@
tools:context=".view.activity.MainActivity">
<item
android:id="@+id/menu_precision_search"
android:id="@+id/menu_source_manage"
android:title="@string/book_source_manage"
android:checkable="true"
app:showAsAction="never" />
<item
android:id="@+id/menu_source_manage"
android:title="@string/book_source_manage"
android:id="@+id/menu_precision_search"
android:title="@string/precision_search"
android:checkable="true"
app:showAsAction="never" />
<group
android:id="@+id/source_group"
android:checkableBehavior="single">
</group>
</menu>

@ -533,5 +533,6 @@
<string name="screen">筛选</string>
<string name="screen_find">筛选发现</string>
<string name="dur_pos">当前位置:</string>
<string name="precision_search">精准搜索</string>
</resources>

Loading…
Cancel
Save