|
|
@ -16,7 +16,6 @@ import io.legado.app.R |
|
|
|
import io.legado.app.base.BaseDialogFragment |
|
|
|
import io.legado.app.base.BaseDialogFragment |
|
|
|
import io.legado.app.constant.AppPattern |
|
|
|
import io.legado.app.constant.AppPattern |
|
|
|
import io.legado.app.constant.EventBus |
|
|
|
import io.legado.app.constant.EventBus |
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
|
|
|
|
import io.legado.app.data.appDb |
|
|
|
import io.legado.app.data.appDb |
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
import io.legado.app.data.entities.BookChapter |
|
|
|
import io.legado.app.data.entities.BookChapter |
|
|
@ -207,12 +206,12 @@ class ChangeBookSourceDialog() : BaseDialogFragment(R.layout.dialog_book_change_ |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
viewModel.refresh() |
|
|
|
viewModel.refresh() |
|
|
|
} |
|
|
|
} |
|
|
|
R.id.menu_load_toc -> { |
|
|
|
R.id.menu_load_info -> { |
|
|
|
putPrefBoolean(PreferKey.changeSourceLoadToc, !item.isChecked) |
|
|
|
AppConfig.changeSourceLoadInfo = !item.isChecked |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
} |
|
|
|
} |
|
|
|
R.id.menu_load_info -> { |
|
|
|
R.id.menu_load_toc -> { |
|
|
|
putPrefBoolean(PreferKey.changeSourceLoadInfo, !item.isChecked) |
|
|
|
AppConfig.changeSourceLoadToc = !item.isChecked |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
} |
|
|
|
} |
|
|
|
R.id.menu_start_stop -> viewModel.startOrStopSearch() |
|
|
|
R.id.menu_start_stop -> viewModel.startOrStopSearch() |
|
|
|