Fix library options menu shown in chapters screen. Resolves #1096

This commit is contained in:
inorichi 2017-11-30 15:37:20 +01:00
parent d87c8428fe
commit 04638535d8
2 changed files with 3 additions and 3 deletions

View File

@ -126,6 +126,7 @@ class LibraryController(
init { init {
setHasOptionsMenu(true) setHasOptionsMenu(true)
retainViewMode = RetainViewMode.RETAIN_DETACH
} }
override fun getTitle(): String? { override fun getTitle(): String? {
@ -425,7 +426,7 @@ class LibraryController(
presenter.onOpenManga() presenter.onOpenManga()
router.pushController(RouterTransaction.with(MangaController(manga)) router.pushController(RouterTransaction.with(MangaController(manga))
.pushChangeHandler(FadeChangeHandler(false)) .pushChangeHandler(FadeChangeHandler())
.popChangeHandler(FadeChangeHandler())) .popChangeHandler(FadeChangeHandler()))
} }

View File

@ -3,5 +3,4 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/view_pager" android:id="@+id/view_pager"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" />
android:background="?android:attr/colorBackground" />