From 713046ce64d9536f7caf6d96417b2b38d6b76d24 Mon Sep 17 00:00:00 2001 From: Francesco <100066266+cranci1@users.noreply.github.com> Date: Sat, 26 Apr 2025 16:30:36 +0200 Subject: [PATCH] OHHHH it was "CURRENT" --- .../AniList/Mutations/AniListPushUpdates.swift | 2 +- Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift | 4 ---- Sora/Utils/Modules/CommunityLib.swift | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Sora/Tracking Services/AniList/Mutations/AniListPushUpdates.swift b/Sora/Tracking Services/AniList/Mutations/AniListPushUpdates.swift index 4589bd9..4383e1f 100644 --- a/Sora/Tracking Services/AniList/Mutations/AniListPushUpdates.swift +++ b/Sora/Tracking Services/AniList/Mutations/AniListPushUpdates.swift @@ -57,7 +57,7 @@ class AniListMutation { let variables: [String: Any] = [ "mediaId": animeId, "progress": episodeNumber, - "status": "WATCHING" + "status": "CURRENT" ] let requestBody: [String: Any] = [ diff --git a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift index 5e385b7..34521f3 100644 --- a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift @@ -1639,21 +1639,17 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele isDimmed.toggle() dimButtonTimer?.invalidate() - // animate black overlay UIView.animate(withDuration: 0.25) { self.blackCoverView.alpha = self.isDimmed ? 1.0 : 0.4 } - // fade controls instead of hiding UIView.animate(withDuration: 0.25) { for view in self.controlsToHide { view.alpha = self.isDimmed ? 0 : 1 } - // keep the dim button visible/in front self.dimButton.alpha = self.isDimmed ? 0 : 1 } - // swap your trailing constraints on the dim‑button dimButtonToSlider.isActive = !isDimmed dimButtonToRight.isActive = isDimmed UIView.animate(withDuration: 0.25) { self.view.layoutIfNeeded() } diff --git a/Sora/Utils/Modules/CommunityLib.swift b/Sora/Utils/Modules/CommunityLib.swift index 079f30a..10ae24f 100644 --- a/Sora/Utils/Modules/CommunityLib.swift +++ b/Sora/Utils/Modules/CommunityLib.swift @@ -6,7 +6,7 @@ // import SwiftUI -@preconcurrency import WebKit +import WebKit private struct ModuleLink: Identifiable { let id = UUID()