Merge pull request #4877 from stuartbreckenridge/main

Minor fixes for 7.0
This commit is contained in:
Brent Simmons authored and GitHub committed 2025-12-19 10:42:42 -08:00
commit 0481b0db4e
3 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ struct Assets {
static var circleClosed: RSImage { RSImage(symbol: "largecircle.fill.circle")! }
static var markBelowAsRead: RSImage { RSImage(symbol: "arrowtriangle.down.circle")! }
static var markAboveAsRead: RSImage { RSImage(named: "arrowtriangle.up.circle")! }
static var markAboveAsRead: RSImage { RSImage(symbol: "arrowtriangle.up.circle")! }
static var more: RSImage { RSImage(symbol: "ellipsis.circle")! }
static var nextArticle: RSImage { RSImage(symbol: "chevron.down")! }
static var circleOpen: RSImage { RSImage(symbol: "circle")! }
@@ -219,7 +219,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
}
//navigationItem.subtitle = "" // don't inherit feeds subtitle on push
updateNavigationBarTitle(coordinator?.timelineFeed?.nameForDisplay ?? "")
updateNavigationBarSubtitle("")
coordinator?.updateNavigationBarSubtitles(nil)
}
override func viewDidAppear(_ animated: Bool) {
+15 -3
View File
@@ -655,9 +655,22 @@ struct FeedNode: Hashable, Sendable {
}
}
}
} else {
}
else {
self.mainFeedCollectionViewController?.navigationItem.subtitle = ""
self.mainTimelineViewController?.updateNavigationBarSubtitle("")
// If unread count > 0, add unread string to timeline
if let _ = timelineFeed, timelineUnreadCount > 0 {
let localizedUnreadCount = NSLocalizedString("%i Unread", comment: "14 Unread")
let refreshTextWithUnreadCount = NSString.localizedStringWithFormat(localizedUnreadCount as NSString, timelineUnreadCount) as String
self.mainTimelineViewController?.updateNavigationBarSubtitle(refreshTextWithUnreadCount)
} else {
// When unread count == 0, iPhone timeline displays Updated Just Now; iPad is blank
if UIDevice.current.userInterfaceIdiom == .phone {
self.mainTimelineViewController?.updateNavigationBarSubtitle(NSLocalizedString("Updated Just Now", comment: "Updated Just Now"))
} else {
self.mainTimelineViewController?.updateNavigationBarSubtitle("")
}
}
}
} else {
// Updating in progress, apply to both iPhone and iPad Feeds.
@@ -665,7 +678,6 @@ struct FeedNode: Hashable, Sendable {
}
scheduleNavigationBarSubtitleUpdate()
}
func scheduleNavigationBarSubtitleUpdate() {