书源搜索

This commit is contained in:
HapeLee
2025-11-15 15:34:21 +08:00
parent 9e43e085c1
commit f42777d02a
2 changed files with 4 additions and 2 deletions
@@ -428,6 +428,7 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
val searchScope = intent?.getStringExtra("searchScope") val searchScope = intent?.getStringExtra("searchScope")
searchScope?.let { searchScope?.let {
viewModel.searchScope.update(searchScope, false) viewModel.searchScope.update(searchScope, false)
updateSearchScopeChip()
} }
val key = intent?.getStringExtra("key") val key = intent?.getStringExtra("key")
if (key.isNullOrBlank()) { if (key.isNullOrBlank()) {
@@ -19,6 +19,7 @@
android:id="@+id/rg_scope" android:id="@+id/rg_scope"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Material3.MaterialButtonGroup.Connected"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:clickable="true" android:clickable="true"
android:focusable="true" android:focusable="true"
@@ -33,7 +34,7 @@
android:id="@+id/rb_group" android:id="@+id/rb_group"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Material3Expressive.Button" style="@style/Widget.Material3Expressive.Button.OutlinedButton"
android:layout_weight="1" android:layout_weight="1"
android:checked="true" android:checked="true"
android:text="@string/group" /> android:text="@string/group" />
@@ -42,7 +43,7 @@
android:id="@+id/rb_source" android:id="@+id/rb_source"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Material3Expressive.Button" style="@style/Widget.Material3Expressive.Button.OutlinedButton"
android:layout_weight="1" android:layout_weight="1"
android:singleLine="true" android:singleLine="true"
android:text="@string/book_source" /> android:text="@string/book_source" />