mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-29 21:30:19 +02:00
chore: Lint code
This commit is contained in:
parent
305eba75cd
commit
216df8935c
@ -243,9 +243,10 @@ public final class FeedComponentsFilter extends Filter {
|
|||||||
if (!communityPostsFeedGroupSearch.matches(allValue) && Settings.HIDE_COMMUNITY_POSTS_CHANNEL.get()) {
|
if (!communityPostsFeedGroupSearch.matches(allValue) && Settings.HIDE_COMMUNITY_POSTS_CHANNEL.get()) {
|
||||||
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||||
}
|
}
|
||||||
if (!communityPostsFeedGroup.check(allValue).isFiltered()) {
|
if (communityPostsFeedGroup.check(allValue).isFiltered()) {
|
||||||
return false;
|
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
} else if (matchedGroup == expandableChip) {
|
} else if (matchedGroup == expandableChip) {
|
||||||
if (path.startsWith(FEED_VIDEO_PATH)) {
|
if (path.startsWith(FEED_VIDEO_PATH)) {
|
||||||
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||||
|
@ -169,7 +169,7 @@ public final class ReturnYouTubeDislikeFilterPatch extends Filter {
|
|||||||
return videoId;
|
return videoId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,10 @@ class VideoDetailsRequest private constructor(
|
|||||||
.getJSONObject("videoDetails")
|
.getJSONObject("videoDetails")
|
||||||
.getString("channelId")
|
.getString("channelId")
|
||||||
} catch (e: JSONException) {
|
} catch (e: JSONException) {
|
||||||
Logger.printException ({ "Fetch failed while processing response data for response: $videoDetailsJson" }, e)
|
Logger.printException(
|
||||||
|
{ "Fetch failed while processing response data for response: $videoDetailsJson" },
|
||||||
|
e
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
@ -129,7 +129,11 @@ class MusicRequest private constructor(
|
|||||||
clientType
|
clientType
|
||||||
)
|
)
|
||||||
val requestBody =
|
val requestBody =
|
||||||
PlayerRoutes.createApplicationRequestBody(clientType = clientType, videoId = videoId, playlistId = "RD$videoId")
|
PlayerRoutes.createApplicationRequestBody(
|
||||||
|
clientType = clientType,
|
||||||
|
videoId = videoId,
|
||||||
|
playlistId = "RD$videoId"
|
||||||
|
)
|
||||||
|
|
||||||
connection.setFixedLengthStreamingMode(requestBody.size)
|
connection.setFixedLengthStreamingMode(requestBody.size)
|
||||||
connection.outputStream.write(requestBody)
|
connection.outputStream.write(requestBody)
|
||||||
@ -226,9 +230,14 @@ class MusicRequest private constructor(
|
|||||||
.getJSONObject("watchEndpoint")
|
.getJSONObject("watchEndpoint")
|
||||||
|
|
||||||
val playerParams: String? = watchEndpointJsonObject?.getString("playerParams")
|
val playerParams: String? = watchEndpointJsonObject?.getString("playerParams")
|
||||||
return playerParams != null && VideoInformation.isMixPlaylistsOpenedByUser(playerParams)
|
return playerParams != null && VideoInformation.isMixPlaylistsOpenedByUser(
|
||||||
|
playerParams
|
||||||
|
)
|
||||||
} catch (e: JSONException) {
|
} catch (e: JSONException) {
|
||||||
Logger.printException ({ "Fetch failed while processing Application response data for response: $playlistJson" }, e)
|
Logger.printException(
|
||||||
|
{ "Fetch failed while processing Application response data for response: $playlistJson" },
|
||||||
|
e
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
@ -242,7 +251,10 @@ class MusicRequest private constructor(
|
|||||||
.getString("category")
|
.getString("category")
|
||||||
.equals("Music")
|
.equals("Music")
|
||||||
} catch (e: JSONException) {
|
} catch (e: JSONException) {
|
||||||
Logger.printException ({ "Fetch failed while processing Web response data for response: $microFormatJson" }, e)
|
Logger.printException(
|
||||||
|
{ "Fetch failed while processing Web response data for response: $microFormatJson" },
|
||||||
|
e
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
@ -59,7 +59,7 @@ class ScreenBrightnessController(
|
|||||||
*/
|
*/
|
||||||
private var rawScreenBrightness: Float
|
private var rawScreenBrightness: Float
|
||||||
get() = host.window.attributes.screenBrightness
|
get() = host.window.attributes.screenBrightness
|
||||||
private set(value) {
|
set(value) {
|
||||||
val attr = host.window.attributes
|
val attr = host.window.attributes
|
||||||
attr.screenBrightness = value
|
attr.screenBrightness = value
|
||||||
host.window.attributes = attr
|
host.window.attributes = attr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user