From 87a575e76cf8f2e03ee480186d96bb7cea13ea5b Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 3 Dec 2019 11:56:49 +0800 Subject: [PATCH] up --- .../ui/main/bookshelf/BookshelfFragment.kt | 1 + .../ui/main/bookshelf/BookshelfViewModel.kt | 4 +++ app/src/main/res/menu/bookshelf.xml | 34 ------------------- 3 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 app/src/main/res/menu/bookshelf.xml diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt index 85cb9e9dc..4b8d578ec 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt @@ -62,6 +62,7 @@ class BookshelfFragment : VMBaseFragment(R.layout.fragment_b } R.id.menu_arrange_bookshelf -> { } + R.id.menu_download_all -> viewModel.downloadAll() } } diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt index 0499e5e5e..08938f6b3 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt @@ -31,4 +31,8 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application) App.db.bookGroupDao().delete(*bookGroup) } } + + fun downloadAll() { + + } } diff --git a/app/src/main/res/menu/bookshelf.xml b/app/src/main/res/menu/bookshelf.xml deleted file mode 100644 index a913d9925..000000000 --- a/app/src/main/res/menu/bookshelf.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file