mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-20 16:27:17 +02:00
chore: Reflecting changes in Kotlin 2.0.21
This commit is contained in:
parent
c1da308239
commit
316038cd75
@ -21,6 +21,7 @@ import app.revanced.extension.shared.utils.Utils;
|
||||
import app.revanced.extension.youtube.settings.Settings;
|
||||
import app.revanced.extension.youtube.shared.ShortsPlayerState;
|
||||
import app.revanced.extension.youtube.utils.VideoUtils;
|
||||
import kotlin.Unit;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ShortsPatch {
|
||||
@ -34,7 +35,7 @@ public class ShortsPatch {
|
||||
if (HIDE_SHORTS_NAVIGATION_BAR) {
|
||||
ShortsPlayerState.getOnChange().addObserver((ShortsPlayerState state) -> {
|
||||
setNavigationBarLayoutParams(state);
|
||||
return null;
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
}
|
||||
final int bottomMargin = validateValue(
|
||||
|
@ -23,6 +23,7 @@ import app.revanced.extension.youtube.patches.player.PlayerPatch;
|
||||
import app.revanced.extension.youtube.settings.Settings;
|
||||
import app.revanced.extension.youtube.shared.PlayerType;
|
||||
import app.revanced.extension.youtube.sponsorblock.objects.SponsorSegment;
|
||||
import kotlin.Unit;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class SponsorBlockViewController {
|
||||
@ -44,7 +45,7 @@ public class SponsorBlockViewController {
|
||||
static {
|
||||
PlayerType.getOnChange().addObserver((PlayerType type) -> {
|
||||
playerTypeChanged(type);
|
||||
return null;
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
|
||||
defaultBottomMargin = getDimension("brand_interaction_default_bottom_margin");
|
||||
|
Loading…
x
Reference in New Issue
Block a user