diff options
| author | Andrew Bulhak <andrew.bulhak@mullvad.net> | 2024-11-14 16:14:21 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-11-28 09:54:26 +0100 |
| commit | a0040646ff15da5ac06e12ebe82706dc7840f5c5 (patch) | |
| tree | 814936bc145ce577cc4b8ff3a7d9333390c7f14d /ios | |
| parent | 193886149592b0e7f3dc4b6e1edb5ec98f66e60d (diff) | |
| download | mullvadvpn-a0040646ff15da5ac06e12ebe82706dc7840f5c5.tar.xz mullvadvpn-a0040646ff15da5ac06e12ebe82706dc7840f5c5.zip | |
Remove settings table view cell for UDP port selection menu
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift | 13 | ||||
| -rw-r--r-- | ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift | 14 |
2 files changed, 1 insertions, 26 deletions
diff --git a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift index 1fe60481d8..526fb1c16c 100644 --- a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift +++ b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsCellFactory.swift @@ -66,19 +66,6 @@ final class VPNSettingsCellFactory: CellFactoryProtocol { cell.disclosureType = .chevron cell.accessibilityIdentifier = item.accessibilityIdentifier - case .udpOverTcpObfuscationSettings: - guard let cell = cell as? SettingsCell else { return } - - cell.titleLabel.text = NSLocalizedString( - "UDP_TCP_OBFUSCATION_CELL_LABEL", - tableName: "VPNSettings", - value: "UDP-over-TCP", - comment: "" - ) - - cell.disclosureType = .chevron - cell.accessibilityIdentifier = item.accessibilityIdentifier - case let .wireGuardPort(port): guard let cell = cell as? SelectableSettingsCell else { return } diff --git a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift index ad56443f30..f74717f1bc 100644 --- a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift +++ b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift @@ -22,7 +22,6 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< case wireGuardCustomPort case wireGuardObfuscation case wireGuardObfuscationOption - case udpOverTcpObfuscationSettings case wireGuardObfuscationPort case quantumResistance case multihop @@ -41,8 +40,6 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< return SelectableSettingsDetailsCell.self case .wireGuardObfuscation: return SelectableSettingsCell.self - case .udpOverTcpObfuscationSettings: - return SettingsCell.self case .wireGuardObfuscationPort: return SelectableSettingsCell.self case .quantumResistance: @@ -77,7 +74,6 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< case ipOverrides case wireGuardPort(_ port: UInt16?) case wireGuardCustomPort - case udpOverTcpObfuscationSettings case wireGuardObfuscationAutomatic case wireGuardObfuscationUdpOverTcp case wireGuardObfuscationShadowsocks @@ -131,8 +127,6 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< return .wireGuardPort case .wireGuardCustomPort: return .wireGuardCustomPort - case .udpOverTcpObfuscationSettings: - return .udpOverTcpObfuscationSettings case .wireGuardObfuscationAutomatic: return .wireGuardObfuscationAutomatic case .wireGuardObfuscationUdpOverTcp: @@ -164,8 +158,6 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< return .wireGuardPort case .wireGuardCustomPort: return .wireGuardCustomPort - case .udpOverTcpObfuscationSettings: - return .udpOverTcpObfuscationSettings case .wireGuardObfuscationAutomatic, .wireGuardObfuscationOff: return .wireGuardObfuscation case .wireGuardObfuscationUdpOverTcp, .wireGuardObfuscationShadowsocks: @@ -319,10 +311,6 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< case .wireGuardCustomPort: getCustomPortCell()?.textField.becomeFirstResponder() - case .udpOverTcpObfuscationSettings: - tableView.deselectRow(at: indexPath, animated: false) - delegate?.showDetails(for: .udpOverTcp) - case .wireGuardObfuscationAutomatic: selectObfuscationState(.automatic) delegate?.didUpdateTunnelSettings(TunnelSettingsUpdate.obfuscation(obfuscationSettings)) @@ -401,7 +389,7 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< let sectionIdentifier = snapshot().sectionIdentifiers[section] switch sectionIdentifier { - case .dnsSettings, .ipOverrides, .privacyAndSecurity, .udpOverTcpObfuscationSettings: + case .dnsSettings, .ipOverrides, .privacyAndSecurity: return .leastNonzeroMagnitude default: return tableView.estimatedRowHeight |
