Skip to content

Commit

Permalink
Merge pull request #3360 from StanHustler/master
Browse files Browse the repository at this point in the history
换源窗口增加关闭按钮
  • Loading branch information
gedoor authored Sep 21, 2023
2 parents 78c0dd8 + 18651f8 commit baefba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ class ChangeBookSourceDialog() : BaseDialogFragment(R.layout.dialog_book_change_

R.id.menu_start_stop -> viewModel.startOrStopSearch()
R.id.menu_source_manage -> startActivity<BookSourceActivity>()
R.id.menu_close -> dismissAllowingStateLoss()
R.id.menu_refresh_list -> viewModel.startRefreshList()
else -> if (item?.groupId == R.id.source_group && !item.isChecked) {
item.isChecked = true
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/menu/change_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,9 @@
</menu>

</item>

<item
android:id="@+id/menu_close"
android:title="@string/close"
app:showAsAction="never" />
</menu>

0 comments on commit baefba6

Please sign in to comment.