mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix
This commit is contained in:
parent
9f272fe6a4
commit
3100e80830
@ -44,7 +44,7 @@ class SubscriptionChannelAdapter(private val subscriptions: MutableList<Subscrip
|
|||||||
Picasso.get().load(subscription.avatar).into(avatar)
|
Picasso.get().load(subscription.avatar).into(avatar)
|
||||||
holder.v.setOnClickListener {
|
holder.v.setOnClickListener {
|
||||||
val activity = holder.v.context as MainActivity
|
val activity = holder.v.context as MainActivity
|
||||||
val bundle = bundleOf("channelId" to subscription.url)
|
val bundle = bundleOf("channel_id" to subscription.url)
|
||||||
activity.navController.navigate(R.id.channel, bundle)
|
activity.navController.navigate(R.id.channel, bundle)
|
||||||
}
|
}
|
||||||
val subscribeBtn = holder.v
|
val subscribeBtn = holder.v
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
<de.hdodenhof.circleimageview.CircleImageView
|
<de.hdodenhof.circleimageview.CircleImageView
|
||||||
android:id="@+id/subscription_channel_image"
|
android:id="@+id/subscription_channel_image"
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp" />
|
android:layout_height="40dp"
|
||||||
|
android:layout_centerVertical="true" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/subscription_channel_name"
|
android:id="@+id/subscription_channel_name"
|
||||||
@ -35,6 +35,7 @@
|
|||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:backgroundTint="?attr/colorOnPrimary"
|
android:backgroundTint="?attr/colorOnPrimary"
|
||||||
android:text="@string/unsubscribe"
|
android:text="@string/unsubscribe"
|
||||||
|
android:textSize="11dp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
app:cornerRadius="20dp" />
|
app:cornerRadius="20dp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -80,10 +80,10 @@
|
|||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:backgroundTint="?attr/colorOnPrimary"
|
android:backgroundTint="?attr/colorOnPrimary"
|
||||||
android:text="@string/subscribe"
|
android:text="@string/subscribe"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:drawableLeft="@drawable/ic_bell_small"
|
android:drawableLeft="@drawable/ic_bell_small"
|
||||||
android:drawableTint="?android:attr/textColorPrimary" />
|
android:drawableTint="@android:color/white" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user