From dcb2460c81c61fa0b4346ca2f2b3d5aad8728a2f Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Wed, 21 Jan 2026 16:58:49 +0800 Subject: [PATCH] ktlint: Fix spacing-between-declarations-with-comments violations Signed-off-by: Aayush Gupta --- .editorconfig | 1 - app/src/main/java/org/schabi/newpipe/info_list/ItemViewMode.kt | 3 +++ .../java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt | 3 +++ .../org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 3a09d1ab5..fa8c19f71 100644 --- a/.editorconfig +++ b/.editorconfig @@ -34,4 +34,3 @@ ktlint_standard_package-name = disabled ktlint_standard_parameter-list-wrapping = disabled ktlint_standard_property-naming = disabled ktlint_standard_spacing-between-declarations-with-annotations = disabled -ktlint_standard_spacing-between-declarations-with-comments = disabled diff --git a/app/src/main/java/org/schabi/newpipe/info_list/ItemViewMode.kt b/app/src/main/java/org/schabi/newpipe/info_list/ItemViewMode.kt index 703191bb9..899223afa 100644 --- a/app/src/main/java/org/schabi/newpipe/info_list/ItemViewMode.kt +++ b/app/src/main/java/org/schabi/newpipe/info_list/ItemViewMode.kt @@ -13,14 +13,17 @@ enum class ItemViewMode { * Default mode. */ AUTO, + /** * Full width list item with thumb on the left and two line title & uploader in right. */ LIST, + /** * Grid mode places two cards per row. */ GRID, + /** * A full width card in phone - portrait. */ diff --git a/app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt b/app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt index 6ec41fc07..9db0e0f59 100644 --- a/app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt +++ b/app/src/main/java/org/schabi/newpipe/util/potoken/PoTokenWebView.kt @@ -245,6 +245,7 @@ class PoTokenWebView private constructor( //endregion //region Handling multiple emitters + /** * Adds the ([identifier], [emitter]) pair to the [poTokenEmitters] list. This makes it so that * multiple poToken requests can be generated invparallel, and the results will be notified to @@ -283,6 +284,7 @@ class PoTokenWebView private constructor( //endregion //region Utils + /** * Makes a POST request to [url] with the given [data] by setting the correct headers. Calls * [onInitializationErrorCloseAndCancel] in case of any network errors and also if the response @@ -363,6 +365,7 @@ class PoTokenWebView private constructor( companion object : PoTokenGenerator.Factory { private val TAG = PoTokenWebView::class.simpleName + // Public API key used by BotGuard, which has been got by looking at BotGuard requests private const val GOOGLE_API_KEY = "AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw" // NOSONAR private const val REQUEST_KEY = "O43z0dpjhgX20SCx4KAo" diff --git a/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt b/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt index 4a4f4509c..cfbb4141c 100644 --- a/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt +++ b/app/src/main/java/org/schabi/newpipe/views/player/PlayerFastSeekOverlay.kt @@ -126,6 +126,7 @@ class PlayerFastSeekOverlay(context: Context, attrs: AttributeSet?) : interface PerformListener { fun onDoubleTap() fun onDoubleTapEnd() + /** * Determines if the playback should forward/rewind or do nothing. */