Added device specific local account names.

This commit is contained in:
Maurice Parker 2019-04-17 13:01:26 -05:00
parent 2972410930
commit 17caa31ee5
1 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,10 @@
// Copyright © 2017 Ranchero Software, LLC. All rights reserved. // Copyright © 2017 Ranchero Software, LLC. All rights reserved.
// //
#if os(iOS)
import UIKit
#endif
import Foundation import Foundation
import RSCore import RSCore
import Articles import Articles
@ -167,7 +171,15 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
switch type { switch type {
case .onMyMac: case .onMyMac:
#if os(macOS)
defaultName = NSLocalizedString("On My Mac", comment: "Account name") defaultName = NSLocalizedString("On My Mac", comment: "Account name")
#else
if UIDevice.current.userInterfaceIdiom == .pad {
defaultName = NSLocalizedString("On My iPad", comment: "Account name")
} else {
defaultName = NSLocalizedString("On My iPhone", comment: "Account name")
}
#endif
case .feedly: case .feedly:
defaultName = "Feedly" defaultName = "Feedly"
case .feedbin: case .feedbin: