Improve placeholder channel banner handling

Now the placeholder gets hidden if there is no banner url or the user disabled images, to save space
This commit is contained in:
Stypox 2023-04-21 17:05:28 +02:00
parent 1061bce4f3
commit c48e702a50
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
3 changed files with 18 additions and 11 deletions

View file

@ -28,10 +28,11 @@
<ImageView
android:id="@+id/channel_banner_image"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@drawable/placeholder_channel_banner"
android:layout_height="wrap_content"
android:maxHeight="70dp"
android:src="@drawable/placeholder_channel_banner"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ContentDescription" />