mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
fix: hide dislikes if no RYD data available (#4812)
Co-authored-by: Bnyro <82752168+Bnyro@users.noreply.github.com>
This commit is contained in:
parent
0b882f77b3
commit
4530b53ddc
@ -1,7 +1,6 @@
|
||||
package com.github.libretube.extensions
|
||||
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.os.Parcelable
|
||||
import androidx.core.content.IntentCompat
|
||||
import java.io.Serializable
|
||||
|
@ -885,7 +885,9 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
playerViewsInfo.text = getString(R.string.normal_views, views, localizeDate(streams))
|
||||
|
||||
textLike.text = streams.likes.formatShort()
|
||||
textDislike.isVisible = streams.dislikes >= 0
|
||||
textDislike.text = streams.dislikes.formatShort()
|
||||
|
||||
ImageHelper.loadImage(streams.uploaderAvatar, binding.playerChannelImage)
|
||||
playerChannelName.text = streams.uploader
|
||||
|
||||
|
@ -39,7 +39,6 @@ import com.google.android.material.chip.Chip
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
class SubscriptionsFragment : Fragment() {
|
||||
private var _binding: FragmentSubscriptionsBinding? = null
|
||||
|
@ -93,6 +93,7 @@
|
||||
android:drawablePadding="5dp"
|
||||
app:drawableStartCompat="@drawable/ic_dislike"
|
||||
app:drawableStartDimen="12dp"
|
||||
android:visibility="gone"
|
||||
tools:text="1.3K" />
|
||||
|
||||
</LinearLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user