From 7307ddd1b8e2f2122b389c06eaa4205cb18e9a59 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 27 Apr 2020 19:48:54 -0400 Subject: [PATCH] Restore landscape manga info layout --- .../ui/manga/info/MangaInfoController.kt | 12 +- .../res/layout-land/manga_info_controller.xml | 340 ++++++++++++++++++ 2 files changed, 347 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/layout-land/manga_info_controller.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index 8ac9698702..184373aac8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt @@ -248,11 +248,13 @@ class MangaInfoController(private val fromSource: Boolean = false) : .centerCrop() .into(binding.mangaCover) - GlideApp.with(view.context) - .load(mangaThumbnail) - .diskCacheStrategy(DiskCacheStrategy.RESOURCE) - .centerCrop() - .into(binding.backdrop) + if (binding.backdrop != null) { + GlideApp.with(view.context) + .load(mangaThumbnail) + .diskCacheStrategy(DiskCacheStrategy.RESOURCE) + .centerCrop() + .into(binding.backdrop!!) + } } // Manga info section diff --git a/app/src/main/res/layout-land/manga_info_controller.xml b/app/src/main/res/layout-land/manga_info_controller.xml new file mode 100644 index 0000000000..cae3831d1f --- /dev/null +++ b/app/src/main/res/layout-land/manga_info_controller.xml @@ -0,0 +1,340 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +