pull/63/head
kunfei 5 years ago
parent 4126bf8f16
commit bea0a08fa0
  1. 2
      app/src/main/java/io/legado/app/ui/download/DownloadActivity.kt
  2. 3
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt
  3. 6
      app/src/main/res/menu/download.xml
  4. 4
      app/src/main/res/menu/main_bookshelf.xml

@ -30,7 +30,9 @@ class DownloadActivity : BaseActivity(R.layout.activity_download) {
override fun onCompatOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.menu_download_start -> {
}
}
return super.onCompatOptionsItemSelected(item)
}

@ -19,6 +19,7 @@ import io.legado.app.lib.dialogs.selector
import io.legado.app.lib.theme.ATH
import io.legado.app.lib.theme.accentColor
import io.legado.app.ui.book.search.SearchActivity
import io.legado.app.ui.download.DownloadActivity
import io.legado.app.utils.getPrefBoolean
import io.legado.app.utils.getViewModel
import io.legado.app.utils.putPrefInt
@ -62,7 +63,7 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b
}
R.id.menu_arrange_bookshelf -> {
}
R.id.menu_download_all -> viewModel.downloadAll()
R.id.menu_download -> startActivity<DownloadActivity>()
}
}

@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<menu>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_download_start"
android:title="@string/action_download" />
</menu>

@ -21,9 +21,9 @@
app:showAsAction="never" />
<item
android:id="@+id/menu_download_all"
android:id="@+id/menu_download"
android:icon="@drawable/ic_download_line"
android:title="@string/download_all"
android:title="@string/download_offline"
app:showAsAction="never" />
<item

Loading…
Cancel
Save