HapeLee 11 miesięcy temu
rodzic
commit
f42777d02a

+ 1 - 0
app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt

@@ -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()) {

+ 3 - 2
app/src/main/res/layout/dialog_search_scope.xml

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