pull/52/head
kunfei 5 years ago
parent 5c2f394304
commit 87a575e76c
  1. 1
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt
  2. 4
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt
  3. 34
      app/src/main/res/menu/bookshelf.xml

@ -62,6 +62,7 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b
}
R.id.menu_arrange_bookshelf -> {
}
R.id.menu_download_all -> viewModel.downloadAll()
}
}

@ -31,4 +31,8 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application)
App.db.bookGroupDao().delete(*bookGroup)
}
}
fun downloadAll() {
}
}

@ -1,34 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_add_local"
android:icon="@drawable/ic_add"
android:title="@string/book_local"
app:showAsAction="never" />
<item
android:id="@+id/menu_add_url"
android:icon="@drawable/ic_add_online"
android:title="@string/add_url"
app:showAsAction="never" />
<item
android:id="@+id/menu_download_all"
android:icon="@drawable/ic_download_line"
android:title="@string/download_all"
app:showAsAction="never" />
<item
android:id="@+id/menu_bookshelf_layout"
android:icon="@drawable/ic_view_quilt"
android:title="@string/bookshelf_layout"
app:showAsAction="never" />
<item
android:id="@+id/menu_arrange_bookshelf"
android:icon="@drawable/ic_arrange"
android:title="@string/arrange_bookshelf"
app:showAsAction="never" />
</menu>
Loading…
Cancel
Save