mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 03:55:06 +01:00
Minor edits
This commit is contained in:
parent
01dd46c5ed
commit
a5d9fb518a
@ -284,24 +284,26 @@ class MangaInfoController(private val fromSource: Boolean = false) :
|
||||
}
|
||||
|
||||
private fun toggleMangaInfo(context: Context) {
|
||||
val isExpanded = binding.mangaInfoToggle.text == context.getString(R.string.manga_info_collapse)
|
||||
|
||||
binding.mangaInfoToggle.text =
|
||||
if (binding.mangaInfoToggle.text == context.getString(R.string.manga_info_expand))
|
||||
context.getString(R.string.manga_info_collapse)
|
||||
else
|
||||
if (isExpanded)
|
||||
context.getString(R.string.manga_info_expand)
|
||||
else
|
||||
context.getString(R.string.manga_info_collapse)
|
||||
|
||||
with(binding.mangaSummary) {
|
||||
maxLines =
|
||||
if (maxLines == Int.MAX_VALUE)
|
||||
if (isExpanded)
|
||||
3
|
||||
else
|
||||
Int.MAX_VALUE
|
||||
|
||||
ellipsize =
|
||||
if (ellipsize == TextUtils.TruncateAt.END)
|
||||
null
|
||||
else
|
||||
if (isExpanded)
|
||||
TextUtils.TruncateAt.END
|
||||
else
|
||||
null
|
||||
}
|
||||
|
||||
binding.mangaGenresTags.toggle()
|
||||
|
@ -206,15 +206,6 @@
|
||||
android:text="@string/add_to_library"
|
||||
app:icon="@drawable/ic_add_to_library_24dp" />
|
||||
|
||||
<!-- <com.google.android.material.button.MaterialButton-->
|
||||
<!-- android:id="@+id/btn_tracking"-->
|
||||
<!-- style="@style/Theme.Widget.Button.Icon"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginStart="8dp"-->
|
||||
<!-- android:text="@string/manga_tracking_tab"-->
|
||||
<!-- app:icon="@drawable/ic_sync_24dp" />-->
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_share"
|
||||
style="@style/Theme.Widget.Button.Icon.Textless"
|
||||
|
Loading…
Reference in New Issue
Block a user