|
|
@ -17,7 +17,6 @@ import io.legado.app.constant.AppConst |
|
|
|
import io.legado.app.constant.EventBus |
|
|
|
import io.legado.app.constant.EventBus |
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
import io.legado.app.data.entities.BookGroup |
|
|
|
import io.legado.app.data.entities.BookGroup |
|
|
|
import io.legado.app.help.AppConfig |
|
|
|
|
|
|
|
import io.legado.app.lib.dialogs.* |
|
|
|
import io.legado.app.lib.dialogs.* |
|
|
|
import io.legado.app.lib.theme.ATH |
|
|
|
import io.legado.app.lib.theme.ATH |
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
@ -27,7 +26,6 @@ import io.legado.app.ui.book.group.GroupManageDialog |
|
|
|
import io.legado.app.ui.book.search.SearchActivity |
|
|
|
import io.legado.app.ui.book.search.SearchActivity |
|
|
|
import io.legado.app.ui.download.DownloadActivity |
|
|
|
import io.legado.app.ui.download.DownloadActivity |
|
|
|
import io.legado.app.ui.importbook.ImportBookActivity |
|
|
|
import io.legado.app.ui.importbook.ImportBookActivity |
|
|
|
import io.legado.app.ui.main.MainViewModel |
|
|
|
|
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.* |
|
|
|
import kotlinx.android.synthetic.main.dialog_edit_text.view.* |
|
|
|
import kotlinx.android.synthetic.main.dialog_edit_text.view.* |
|
|
|
import kotlinx.android.synthetic.main.fragment_bookshelf.* |
|
|
|
import kotlinx.android.synthetic.main.fragment_bookshelf.* |
|
|
@ -53,11 +51,6 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b |
|
|
|
setSupportToolbar(toolbar) |
|
|
|
setSupportToolbar(toolbar) |
|
|
|
initView() |
|
|
|
initView() |
|
|
|
initBookGroupData() |
|
|
|
initBookGroupData() |
|
|
|
if (AppConfig.autoRefreshBook) { |
|
|
|
|
|
|
|
tab_layout.postDelayed({ |
|
|
|
|
|
|
|
getViewModelOfActivity(MainViewModel::class.java).upChapterList() |
|
|
|
|
|
|
|
}, 1000) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onCompatCreateOptionsMenu(menu: Menu) { |
|
|
|
override fun onCompatCreateOptionsMenu(menu: Menu) { |
|
|
|