This commit is contained in:
Bnyro 2022-06-09 13:45:16 +02:00
parent 9f272fe6a4
commit 3100e80830
3 changed files with 6 additions and 5 deletions

View File

@ -44,7 +44,7 @@ class SubscriptionChannelAdapter(private val subscriptions: MutableList<Subscrip
Picasso.get().load(subscription.avatar).into(avatar)
holder.v.setOnClickListener {
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)
}
val subscribeBtn = holder.v

View File

@ -11,9 +11,9 @@
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/subscription_channel_image"
android:layout_centerVertical="true"
android:layout_width="40dp"
android:layout_height="40dp" />
android:layout_height="40dp"
android:layout_centerVertical="true" />
<TextView
android:id="@+id/subscription_channel_name"
@ -35,6 +35,7 @@
android:layout_alignParentEnd="true"
android:backgroundTint="?attr/colorOnPrimary"
android:text="@string/unsubscribe"
android:textSize="11dp"
android:textColor="@android:color/white"
app:cornerRadius="20dp" />
</RelativeLayout>

View File

@ -80,10 +80,10 @@
android:layout_alignParentEnd="true"
android:backgroundTint="?attr/colorOnPrimary"
android:text="@string/subscribe"
android:textColor="?android:attr/textColorPrimary"
android:textColor="@android:color/white"
android:textSize="11sp"
android:drawableLeft="@drawable/ic_bell_small"
android:drawableTint="?android:attr/textColorPrimary" />
android:drawableTint="@android:color/white" />
</LinearLayout>