mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix: hide channel icon placeholder in channel fragment
This commit is contained in:
parent
4a2cca1a24
commit
caef216c96
@ -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 {
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user