fix: hide channel icon placeholder in channel fragment

This commit is contained in:
Bnyro 2023-09-08 17:37:31 +02:00
parent 4a2cca1a24
commit caef216c96
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import android.content.Context
import android.text.format.DateUtils
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isGone
import androidx.core.view.updateLayoutParams
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
@ -181,6 +182,8 @@ class VideosAdapter(
channelContainer.setOnClickListener {
NavigationHelper.navigateChannel(root.context, video.uploaderUrl)
}
} else {
channelImageContainer.isGone = true
}
root.setOnClickListener {

View File

@ -104,6 +104,7 @@
app:layout_constraintTop_toBottomOf="@id/video_info">
<androidx.cardview.widget.CardView
android:id="@+id/channel_image_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardCornerRadius="13.5dp">