mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
ktlint
This commit is contained in:
parent
042cf26c1c
commit
bb784f5880
@ -92,7 +92,10 @@ class CommentsAdapter(
|
|||||||
val repliesFragment = CommentsRepliesFragment().apply {
|
val repliesFragment = CommentsRepliesFragment().apply {
|
||||||
arguments = Bundle().apply {
|
arguments = Bundle().apply {
|
||||||
putString(IntentData.videoId, videoId)
|
putString(IntentData.videoId, videoId)
|
||||||
putString(IntentData.comment, Json.encodeToString(Comment.serializer(), comment))
|
putString(
|
||||||
|
IntentData.comment,
|
||||||
|
Json.encodeToString(Comment.serializer(), comment)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
root.setOnClickListener {
|
root.setOnClickListener {
|
||||||
|
@ -45,7 +45,7 @@ class CommentsRepliesFragment : Fragment() {
|
|||||||
val videoId = arguments?.getString(IntentData.videoId) ?: ""
|
val videoId = arguments?.getString(IntentData.videoId) ?: ""
|
||||||
val comment = Json.decodeFromString(
|
val comment = Json.decodeFromString(
|
||||||
Comment.serializer(),
|
Comment.serializer(),
|
||||||
arguments?.getString(IntentData.comment) ?: """{}""",
|
arguments?.getString(IntentData.comment) ?: """{}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
repliesAdapter = CommentsAdapter(null, videoId, mutableListOf(comment), true) {
|
repliesAdapter = CommentsAdapter(null, videoId, mutableListOf(comment), true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user