mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +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
|
package com.github.libretube.extensions
|
||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Build
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import androidx.core.content.IntentCompat
|
import androidx.core.content.IntentCompat
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
@ -885,7 +885,9 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
playerViewsInfo.text = getString(R.string.normal_views, views, localizeDate(streams))
|
playerViewsInfo.text = getString(R.string.normal_views, views, localizeDate(streams))
|
||||||
|
|
||||||
textLike.text = streams.likes.formatShort()
|
textLike.text = streams.likes.formatShort()
|
||||||
|
textDislike.isVisible = streams.dislikes >= 0
|
||||||
textDislike.text = streams.dislikes.formatShort()
|
textDislike.text = streams.dislikes.formatShort()
|
||||||
|
|
||||||
ImageHelper.loadImage(streams.uploaderAvatar, binding.playerChannelImage)
|
ImageHelper.loadImage(streams.uploaderAvatar, binding.playerChannelImage)
|
||||||
playerChannelName.text = streams.uploader
|
playerChannelName.text = streams.uploader
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@ import com.google.android.material.chip.Chip
|
|||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.runBlocking
|
import kotlinx.coroutines.runBlocking
|
||||||
import kotlinx.coroutines.withContext
|
|
||||||
|
|
||||||
class SubscriptionsFragment : Fragment() {
|
class SubscriptionsFragment : Fragment() {
|
||||||
private var _binding: FragmentSubscriptionsBinding? = null
|
private var _binding: FragmentSubscriptionsBinding? = null
|
||||||
|
@ -93,6 +93,7 @@
|
|||||||
android:drawablePadding="5dp"
|
android:drawablePadding="5dp"
|
||||||
app:drawableStartCompat="@drawable/ic_dislike"
|
app:drawableStartCompat="@drawable/ic_dislike"
|
||||||
app:drawableStartDimen="12dp"
|
app:drawableStartDimen="12dp"
|
||||||
|
android:visibility="gone"
|
||||||
tools:text="1.3K" />
|
tools:text="1.3K" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user