File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,4 +35,3 @@ ktlint_standard_parameter-list-wrapping = disabled
3535ktlint_standard_property-naming = disabled
3636ktlint_standard_spacing-between-declarations-with-annotations = disabled
3737ktlint_standard_spacing-between-declarations-with-comments = disabled
38- ktlint_standard_statement-wrapping = disabled
Original file line number Diff line number Diff line change @@ -41,7 +41,10 @@ class StreamSegmentItem(
4141 viewHolder.root.findViewById<TextView >(R .id.textViewStartSeconds).text =
4242 Localization .getDurationString(item.startTimeSeconds.toLong())
4343 viewHolder.root.setOnClickListener { onClick.onItemClick(this , item.startTimeSeconds) }
44- viewHolder.root.setOnLongClickListener { onClick.onItemLongClick(this , item.startTimeSeconds); true }
44+ viewHolder.root.setOnLongClickListener {
45+ onClick.onItemLongClick(this , item.startTimeSeconds)
46+ true
47+ }
4548 viewHolder.root.isSelected = isSelected
4649 }
4750
Original file line number Diff line number Diff line change @@ -65,5 +65,9 @@ private val linkHandler: YoutubeStreamLinkHandlerFactory = YoutubeStreamLinkHand
6565 */
6666private fun getYouTubeId (url : String ): String? {
6767
68- return try { linkHandler.getId(url) } catch (e: ParsingException ) { null }
68+ return try {
69+ linkHandler.getId(url)
70+ } catch (e: ParsingException ) {
71+ null
72+ }
6973}
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ class ChannelItem(
4343
4444 gesturesListener?.run {
4545 viewHolder.root.setOnClickListener { selected(infoItem) }
46- viewHolder.root.setOnLongClickListener { held(infoItem); true }
46+ viewHolder.root.setOnLongClickListener {
47+ held(infoItem)
48+ true
49+ }
4750 }
4851 }
4952
You can’t perform that action at this time.
0 commit comments