From 04638535d83e9473a4abb6d47bdd2f86675187fe Mon Sep 17 00:00:00 2001 From: inorichi Date: Thu, 30 Nov 2017 15:37:20 +0100 Subject: [PATCH] Fix library options menu shown in chapters screen. Resolves #1096 --- .../java/eu/kanade/tachiyomi/ui/library/LibraryController.kt | 3 ++- app/src/main/res/layout/manga_controller.xml | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index fce944223..eeb5fef6e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -126,6 +126,7 @@ class LibraryController( init { setHasOptionsMenu(true) + retainViewMode = RetainViewMode.RETAIN_DETACH } override fun getTitle(): String? { @@ -425,7 +426,7 @@ class LibraryController( presenter.onOpenManga() router.pushController(RouterTransaction.with(MangaController(manga)) - .pushChangeHandler(FadeChangeHandler(false)) + .pushChangeHandler(FadeChangeHandler()) .popChangeHandler(FadeChangeHandler())) } diff --git a/app/src/main/res/layout/manga_controller.xml b/app/src/main/res/layout/manga_controller.xml index dcc74b37a..27421c4c5 100644 --- a/app/src/main/res/layout/manga_controller.xml +++ b/app/src/main/res/layout/manga_controller.xml @@ -3,5 +3,4 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/view_pager" android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?android:attr/colorBackground" /> \ No newline at end of file + android:layout_height="match_parent" /> \ No newline at end of file