Fix switches for those who like to "slide"

There's more than one way to flip a switch.

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent d76d04b8e8
commit 8973881d3d

@ -62,7 +62,7 @@ typedef NS_ENUM(NSInteger, AdvancedSettingsTableViewControllerSection) {
[self.enableLogSwitch setOn:[PropertyListPreferences loggingIsEnabled]];
[self.enableLogSwitch addTarget:self
action:@selector(didToggleEnableLogSwitch:)
forControlEvents:UIControlEventTouchUpInside];
forControlEvents:UIControlEventValueChanged];
self.enableLogCell.accessoryView = self.enableLogSwitch;
// Send Log

@ -70,7 +70,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
[self.enableCallKitSwitch setOn:[[Environment getCurrent].preferences isCallKitEnabled]];
[self.enableCallKitSwitch addTarget:self
action:@selector(didToggleEnableCallKitSwitch:)
forControlEvents:UIControlEventTouchUpInside];
forControlEvents:UIControlEventValueChanged];
self.enableCallKitCell.accessoryView = self.enableCallKitSwitch;
// CallKit privacy
@ -80,7 +80,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
[self.enableCallKitPrivacySwitch setOn:![[Environment getCurrent].preferences isCallKitPrivacyEnabled]];
[self.enableCallKitPrivacySwitch addTarget:self
action:@selector(didToggleEnableCallKitPrivacySwitch:)
forControlEvents:UIControlEventTouchUpInside];
forControlEvents:UIControlEventValueChanged];
self.enableCallKitPrivacyCell.accessoryView = self.enableCallKitPrivacySwitch;
// Enable Screen Security Cell
@ -92,7 +92,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
[self.enableScreenSecuritySwitch setOn:[Environment.preferences screenSecurityIsEnabled]];
[self.enableScreenSecuritySwitch addTarget:self
action:@selector(didToggleScreenSecuritySwitch:)
forControlEvents:UIControlEventTouchUpInside];
forControlEvents:UIControlEventValueChanged];
// Allow calls to connect directly vs. using TURN exclusively
self.callsHideIPAddressCell = [UITableViewCell new];
@ -103,7 +103,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
[self.callsHideIPAddressSwitch setOn:[Environment.preferences doCallsHideIPAddress]];
[self.callsHideIPAddressSwitch addTarget:self
action:@selector(didToggleCallsHideIPAddressSwitch:)
forControlEvents:UIControlEventTouchUpInside];
forControlEvents:UIControlEventValueChanged];
// Clear History Log Cell
self.clearHistoryLogCell = [[UITableViewCell alloc] init];
@ -119,7 +119,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
[self.blockOnIdentityChangeSwitch setOn:[Environment.preferences shouldBlockOnIdentityChange]];
[self.blockOnIdentityChangeSwitch addTarget:self
action:@selector(didToggleBlockOnIdentityChangeSwitch:)
forControlEvents:UIControlEventTouchUpInside];
forControlEvents:UIControlEventValueChanged];
}
#pragma mark - Table view data source

Loading…
Cancel
Save