From f0f4d83fcd3fcdbb9576fdaac9bcc4778fe9fbe4 Mon Sep 17 00:00:00 2001 From: Balamurugan Date: Tue, 17 Mar 2026 20:56:27 +0530 Subject: [PATCH] refactor: Remove incorrectly added download quality message - Remove download quality description from action sheets - Message content was incorrect - Update applies to UIKit and SwiftUI download quality menus --- Source/Database/TPStreamsDownloadManager.swift | 2 +- Source/Views/SwiftUI/PlayerSettingsButton.swift | 2 +- Source/Views/UIKit/PlayerControlsUIView.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Database/TPStreamsDownloadManager.swift b/Source/Database/TPStreamsDownloadManager.swift index 031a138..2ce1a7e 100644 --- a/Source/Database/TPStreamsDownloadManager.swift +++ b/Source/Database/TPStreamsDownloadManager.swift @@ -164,7 +164,7 @@ public final class TPStreamsDownloadManager { on viewController: UIViewController, completion: ((Result) -> Void)? ) { - let alert = UIAlertController(title: "Select Download Quality", message: "Video quality adjusts based on your internet speed. Your selection sets the highest possible quality.", preferredStyle: .actionSheet) + let alert = UIAlertController(title: "Select Download Quality", message: nil, preferredStyle: .actionSheet) for quality in qualities { alert.addAction(UIAlertAction(title: quality.resolution, style: .default) { _ in diff --git a/Source/Views/SwiftUI/PlayerSettingsButton.swift b/Source/Views/SwiftUI/PlayerSettingsButton.swift index 5085637..ef594f2 100644 --- a/Source/Views/SwiftUI/PlayerSettingsButton.swift +++ b/Source/Views/SwiftUI/PlayerSettingsButton.swift @@ -53,7 +53,7 @@ struct PlayerSettingsButton: View { case .downloadQuality: return ActionSheet( title: Text("Download Quality"), - message: Text("Video quality adjusts based on your internet speed. Your selection sets the highest possible quality."), + message: nil, buttons: downloadQualityOptions() + [.cancel()] ) } diff --git a/Source/Views/UIKit/PlayerControlsUIView.swift b/Source/Views/UIKit/PlayerControlsUIView.swift index 4820cca..7783cb8 100644 --- a/Source/Views/UIKit/PlayerControlsUIView.swift +++ b/Source/Views/UIKit/PlayerControlsUIView.swift @@ -219,7 +219,7 @@ class PlayerControlsUIView: UIView { } func createDownloadQualityMenu() -> UIAlertController { - let qualityMenu = UIAlertController(title: "Available resolutions", message: "Video quality adjusts based on your internet speed. Your selection sets the highest possible quality.", preferredStyle: ACTION_SHEET_PREFERRED_STYLE) + let qualityMenu = UIAlertController(title: "Available resolutions", message: nil, preferredStyle: ACTION_SHEET_PREFERRED_STYLE) var availableVideoQualities = player.availableVideoQualities // Remove Auto Quality from the Array availableVideoQualities.remove(at: 0)