From f73852db6ce354956dd56168fa7438f1fd161c98 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 7 Feb 2020 13:41:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/arrange/ArrangeBookActivity.kt | 12 ++++++++++++ app/src/main/res/menu/arrange_book.xml | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt index c4ec013eb..47e912322 100644 --- a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt @@ -63,6 +63,18 @@ class ArrangeBookActivity : VMBaseActivity(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 diff --git a/app/src/main/res/menu/arrange_book.xml b/app/src/main/res/menu/arrange_book.xml index f5dcc2d39..25f88a1fc 100644 --- a/app/src/main/res/menu/arrange_book.xml +++ b/app/src/main/res/menu/arrange_book.xml @@ -16,7 +16,15 @@ + android:title="@string/all" /> + + + +