From 50b48ab25cfae99d276e2a037f56fa849edc8826 Mon Sep 17 00:00:00 2001 From: inorichi Date: Fri, 9 Mar 2018 22:35:10 +0100 Subject: [PATCH] Fix info layout + disable tag clicks for now --- .../ui/manga/info/MangaInfoController.kt | 11 +++++-- .../res/layout-land/manga_info_controller.xml | 2 +- .../main/res/layout/manga_info_controller.xml | 33 +++++++------------ 3 files changed, 20 insertions(+), 26 deletions(-) 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 6c0b86915..56218fde5 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 @@ -15,7 +15,12 @@ import android.support.customtabs.CustomTabsIntent import android.support.v4.content.pm.ShortcutInfoCompat import android.support.v4.content.pm.ShortcutManagerCompat import android.support.v4.graphics.drawable.IconCompat -import android.view.* +import android.view.LayoutInflater +import android.view.Menu +import android.view.MenuInflater +import android.view.MenuItem +import android.view.View +import android.view.ViewGroup import android.widget.Toast import com.afollestad.materialdialogs.MaterialDialog import com.bumptech.glide.load.engine.DiskCacheStrategy @@ -51,7 +56,7 @@ import kotlinx.android.synthetic.main.manga_info_controller.* import uy.kohesive.injekt.injectLazy import java.text.DateFormat import java.text.DecimalFormat -import java.util.* +import java.util.Date /** * Fragment that shows manga information. @@ -118,7 +123,7 @@ class MangaInfoController : NucleusController(), copyToClipboard(view.context.getString(R.string.description), manga_summary.text.toString()) } - manga_genres_tags.setOnTagClickListener { tag -> performGlobalSearch(tag) } + //manga_genres_tags.setOnTagClickListener { tag -> performGlobalSearch(tag) } manga_cover.longClicks().subscribeUntilDestroy { copyToClipboard(view.context.getString(R.string.title), presenter.manga.title) diff --git a/app/src/main/res/layout-land/manga_info_controller.xml b/app/src/main/res/layout-land/manga_info_controller.xml index 1f840d09b..bba645590 100644 --- a/app/src/main/res/layout-land/manga_info_controller.xml +++ b/app/src/main/res/layout-land/manga_info_controller.xml @@ -71,7 +71,7 @@ app:layout_constraintLeft_toLeftOf="parent" app:autoSizeTextType="uniform" app:autoSizeMinTextSize="12sp" - app:autoSizeMaxTextSize="100sp" + app:autoSizeMaxTextSize="20sp" app:autoSizeStepGranularity="2sp"/> + app:layout_constraintBottom_toTopOf="@id/manga_genres_tags"> - + android:layout_height="wrap_content" + android:textIsSelectable="false"/> - - - + app:atg_textColor="@color/md_blue_A400" />