mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
换源窗口增加关闭按钮
This commit is contained in:
parent
78c0dd801e
commit
18651f89af
@ -241,6 +241,7 @@ class ChangeBookSourceDialog() : BaseDialogFragment(R.layout.dialog_book_change_
|
|||||||
|
|
||||||
R.id.menu_start_stop -> viewModel.startOrStopSearch()
|
R.id.menu_start_stop -> viewModel.startOrStopSearch()
|
||||||
R.id.menu_source_manage -> startActivity<BookSourceActivity>()
|
R.id.menu_source_manage -> startActivity<BookSourceActivity>()
|
||||||
|
R.id.menu_close -> dismissAllowingStateLoss()
|
||||||
R.id.menu_refresh_list -> viewModel.startRefreshList()
|
R.id.menu_refresh_list -> viewModel.startRefreshList()
|
||||||
else -> if (item?.groupId == R.id.source_group && !item.isChecked) {
|
else -> if (item?.groupId == R.id.source_group && !item.isChecked) {
|
||||||
item.isChecked = true
|
item.isChecked = true
|
||||||
|
@ -64,4 +64,9 @@
|
|||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:id="@+id/menu_close"
|
||||||
|
android:title="@string/close"
|
||||||
|
app:showAsAction="never" />
|
||||||
</menu>
|
</menu>
|
Loading…
Reference in New Issue
Block a user