pull/94/head
kunfei 5 years ago
parent b4f119b413
commit f73852db6c
  1. 12
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt
  2. 10
      app/src/main/res/menu/arrange_book.xml

@ -63,6 +63,18 @@ class ArrangeBookActivity : VMBaseActivity<ArrangeBookViewModel>(R.layout.activi
adapter.selectedBooks.clear()
initBookData()
}
R.id.menu_local -> {
title_bar.subtitle = item.title
groupId = -2
adapter.selectedBooks.clear()
initBookData()
}
R.id.menu_audio -> {
title_bar.subtitle = item.title
groupId = -3
adapter.selectedBooks.clear()
initBookData()
}
else -> if (item.groupId == R.id.menu_group) {
title_bar.subtitle = item.title
groupId = item.itemId

@ -16,7 +16,15 @@
<item
android:id="@+id/menu_all"
android:title="@string/all_book" />
android:title="@string/all" />
<item
android:id="@+id/menu_local"
android:title="@string/local" />
<item
android:id="@+id/menu_audio"
android:title="@string/audio" />
</menu>

Loading…
Cancel
Save