This commit is contained in:
Bnyro 2022-05-18 10:30:35 +02:00
parent d575320ed3
commit be83f3bc12
3 changed files with 4 additions and 2 deletions

View File

@ -195,7 +195,8 @@ class ChannelFragment : Fragment() {
val channelVerified = view.findViewById<ImageView>(R.id.channel_verified)
if (response.verified) channelVerified.visibility = View.VISIBLE
view.findViewById<TextView>(R.id.channel_subs).text=resources.getString(R.string.subscribers, response.subscriberCount.formatShort())
view.findViewById<TextView>(R.id.channel_description).text=response.description?.trim()
val channelDescription = view.findViewById<TextView>(R.id.channel_description)
if (response.description?.trim() == "") channelDescription.visibility = View.GONE else channelDescription.text = response.description?.trim()
val bannerImage = view.findViewById<ImageView>(R.id.channel_banner)
val channelImage = view.findViewById<ImageView>(R.id.channel_image)
Picasso.get().load(response.bannerUrl).into(bannerImage)

View File

@ -87,6 +87,7 @@
android:background="?android:attr/selectableItemBackground"
android:text="@string/subscribe"
android:textColor="?android:attr/textColorPrimary"
android:textSize="11dp"
android:drawableLeft="@drawable/ic_bell"
android:drawableTint="?android:attr/textColorPrimary"
/>

View File

@ -33,7 +33,7 @@
/>
</Transition>
<ConstraintSet>
<ConstraintSet android:id="@+id/start">
<Constraint
android:id="@+id/player"
android:layout_width="match_parent"