mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Fix Ktlint errors.
This commit is contained in:
parent
e5ff74b5db
commit
797d0dcfbd
@ -650,9 +650,13 @@ class PlayerFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
relatedRecView.adapter = TrendingAdapter(response.relatedStreams!!, childFragmentManager)
|
relatedRecView.adapter = TrendingAdapter(
|
||||||
|
response.relatedStreams!!,
|
||||||
|
childFragmentManager
|
||||||
|
)
|
||||||
|
|
||||||
view.findViewById<TextView>(R.id.player_description).text =
|
view.findViewById<TextView>(R.id.player_description).text =
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
Html.fromHtml(response.description, Html.FROM_HTML_MODE_COMPACT).trim()
|
Html.fromHtml(response.description, Html.FROM_HTML_MODE_COMPACT).trim()
|
||||||
} else {
|
} else {
|
||||||
Html.fromHtml(response.description).trim()
|
Html.fromHtml(response.description).trim()
|
||||||
|
@ -12,7 +12,11 @@ import androidx.constraintlayout.motion.widget.MotionLayout
|
|||||||
import androidx.core.os.bundleOf
|
import androidx.core.os.bundleOf
|
||||||
import androidx.fragment.app.FragmentManager
|
import androidx.fragment.app.FragmentManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.github.libretube.*
|
import com.github.libretube.MainActivity
|
||||||
|
import com.github.libretube.PlayerFragment
|
||||||
|
import com.github.libretube.R
|
||||||
|
import com.github.libretube.VideoOptionsDialog
|
||||||
|
import com.github.libretube.formatShort
|
||||||
import com.github.libretube.obj.StreamItem
|
import com.github.libretube.obj.StreamItem
|
||||||
import com.squareup.picasso.Picasso
|
import com.squareup.picasso.Picasso
|
||||||
|
|
||||||
@ -46,8 +50,8 @@ class SubscriptionAdapter(
|
|||||||
holder.v.findViewById<TextView>(R.id.textView_title).text = trending.title
|
holder.v.findViewById<TextView>(R.id.textView_title).text = trending.title
|
||||||
holder.v.findViewById<TextView>(R.id.textView_channel).text =
|
holder.v.findViewById<TextView>(R.id.textView_channel).text =
|
||||||
trending.uploaderName + " • " +
|
trending.uploaderName + " • " +
|
||||||
trending.views.formatShort() + " • " +
|
trending.views.formatShort() + " • " +
|
||||||
DateUtils.getRelativeTimeSpanString(trending.uploaded!!)
|
DateUtils.getRelativeTimeSpanString(trending.uploaded!!)
|
||||||
val thumbnailImage = holder.v.findViewById<ImageView>(R.id.thumbnail)
|
val thumbnailImage = holder.v.findViewById<ImageView>(R.id.thumbnail)
|
||||||
holder.v.findViewById<TextView>(R.id.thumbnail_duration).text =
|
holder.v.findViewById<TextView>(R.id.thumbnail_duration).text =
|
||||||
DateUtils.formatElapsedTime(trending.duration!!)
|
DateUtils.formatElapsedTime(trending.duration!!)
|
||||||
|
@ -12,12 +12,13 @@ import androidx.constraintlayout.motion.widget.MotionLayout
|
|||||||
import androidx.core.os.bundleOf
|
import androidx.core.os.bundleOf
|
||||||
import androidx.fragment.app.FragmentManager
|
import androidx.fragment.app.FragmentManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.github.libretube.*
|
import com.github.libretube.MainActivity
|
||||||
import com.squareup.picasso.Picasso
|
|
||||||
import com.github.libretube.PlayerFragment
|
import com.github.libretube.PlayerFragment
|
||||||
import com.github.libretube.R
|
import com.github.libretube.R
|
||||||
|
import com.github.libretube.VideoOptionsDialog
|
||||||
import com.github.libretube.formatShort
|
import com.github.libretube.formatShort
|
||||||
import com.github.libretube.obj.StreamItem
|
import com.github.libretube.obj.StreamItem
|
||||||
|
import com.squareup.picasso.Picasso
|
||||||
|
|
||||||
class TrendingAdapter(
|
class TrendingAdapter(
|
||||||
private val videoFeed: List<StreamItem>,
|
private val videoFeed: List<StreamItem>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user