Skip to content

Commit

Permalink
move 'add another device' to the same place as on android
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Mar 16, 2023
1 parent 2ee568c commit fab1a39
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions deltachat-ios/Controller/Settings/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ internal final class SettingsViewController: UITableViewController {
return cell
}()

private lazy var addAnotherDeviceCell: ActionCell = {
let cell = ActionCell()
cell.tag = CellTags.addAnotherDevice.rawValue
cell.actionTitle = String.localized("add_another_device")
return cell
}()

private lazy var chatsAndMediaCell: UITableViewCell = {
let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
cell.tag = CellTags.chatsAndMedia.rawValue
Expand All @@ -67,6 +60,14 @@ internal final class SettingsViewController: UITableViewController {
return cell
}()

private lazy var addAnotherDeviceCell: UITableViewCell = {
let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
cell.tag = CellTags.addAnotherDevice.rawValue
cell.textLabel?.text = String.localized("add_another_device")
cell.accessoryType = .disclosureIndicator
return cell
}()

private lazy var advancedCell: UITableViewCell = {
let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
cell.tag = CellTags.advanced.rawValue
Expand Down Expand Up @@ -106,14 +107,13 @@ internal final class SettingsViewController: UITableViewController {
}
let profileSection = SectionConfigs(
headerTitle: String.localized("pref_profile_info_headline"),
footerTitle: String.localized("add_another_device_explain"),
cells: [profileCell, addAnotherDeviceCell]
// TODO: move addAnotherDeviceCell down after "Export Backup" (which can go to "Advanced" at some point then)
footerTitle: nil,
cells: [profileCell]
)
let preferencesSection = SectionConfigs(
headerTitle: nil,
footerTitle: nil,
cells: [chatsAndMediaCell, notificationCell, selectBackgroundCell, connectivityCell, advancedCell]
cells: [chatsAndMediaCell, notificationCell, selectBackgroundCell, addAnotherDeviceCell, connectivityCell, advancedCell]
)
let helpSection = SectionConfigs(
headerTitle: nil,
Expand Down

0 comments on commit fab1a39

Please sign in to comment.