Skip to content

Commit

Permalink
Merge pull request #1245 from Automattic/merge/release-7.53.0.1-into-…
Browse files Browse the repository at this point in the history
…trunk

7.53 Release: Merge changes from 7.53.0.1 into `trunk`
  • Loading branch information
leandroalonso committed Nov 30, 2023
2 parents f5d708e + 9c90ce7 commit cde718f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Moves Bookmarks out of Early Access: [#1224]
- Shows the Bookmarks tab after Chapters [#1240]
- Makes the player transition faster, smoother and with a new effect [#1090]
- Attempts to fix podcast being removed from their folders [#1239]

7.52
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ extension SyncTask {
podcastRecord.isDeleted.value = !podcast.isSubscribed()
podcastRecord.subscribed.value = podcast.isSubscribed()
podcastRecord.sortPosition.value = podcast.sortOrder

// There's a bug on the watch app that resets all users folders
// Since the watch don't use folders at all, it shouldn't sync
#if !os(watchOS)
podcastRecord.folderUuid.value = podcast.folderUuid ?? DataConstants.homeGridFolderUuid
#endif

if let addedDate = podcast.addedDate {
podcastRecord.dateAdded = Google_Protobuf_Timestamp(date: addedDate)
}
Expand Down
2 changes: 1 addition & 1 deletion config/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION_LONG=7.53.0.0
VERSION_LONG=7.53.0.1
VERSION_SHORT=7.53
2 changes: 1 addition & 1 deletion podcasts/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct AboutView: View {
}

private func openShareApp() {
guard let controller = SceneHelper.rootViewController()?.presentedViewController else { return }
guard let controller = FeatureFlag.newPlayerTransition.enabled ? SceneHelper.rootViewController() : SceneHelper.rootViewController()?.presentedViewController else { return }

SharingHelper.shared.shareLinkToApp(fromController: controller)
}
Expand Down
2 changes: 1 addition & 1 deletion podcasts/End of Year/EndOfYear.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct EndOfYear {
}

func share(assets: [Any], storyIdentifier: String = "unknown", onDismiss: (() -> Void)? = nil) {
let presenter = SceneHelper.rootViewController()?.presentedViewController
let presenter = FeatureFlag.newPlayerTransition.enabled ? SceneHelper.rootViewController() : SceneHelper.rootViewController()?.presentedViewController

let fakeViewController = FakeViewController()
fakeViewController.onDismiss = onDismiss
Expand Down
2 changes: 1 addition & 1 deletion podcasts/End of Year/Stories/Views/PaidStoryWallView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct PaidStoryWallView: View {
.padding(.bottom, geometry.size.height * 0.06)

Button(model.pricingInfo.hasFreeTrial ? L10n.eoyStartYourFreeTrial : L10n.upgradeToPlan(L10n.pocketCastsPlusShort)) {
guard let storiesViewController = SceneHelper.rootViewController()?.presentedViewController else {
guard let storiesViewController = FeatureFlag.newPlayerTransition.enabled ? SceneHelper.rootViewController() : SceneHelper.rootViewController()?.presentedViewController else {
return
}

Expand Down
2 changes: 1 addition & 1 deletion podcasts/UIViewController+Presenting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import UIKit

extension UIViewController {
var topMostPresentedViewController: UIViewController? {
guard UIApplication.shared.applicationState == .active else {
guard UIApplication.shared.applicationState != .background else {
return nil
}

Expand Down

0 comments on commit cde718f

Please sign in to comment.