BugFix: 'Enable notifications on your device' toggle spills over the side on an iPhone 5 display.

https://github.com/vector-im/vector-ios/issues/167
This commit is contained in:
giomfo
2016-05-04 11:58:50 +02:00
parent dd9b91e54f
commit f1a689bfa3
2 changed files with 3 additions and 2 deletions
@@ -710,9 +710,10 @@
enableAllCell.mxkLabel.text = NSLocalizedStringFromTable(@"settings_enable_push_notif", @"Vector", nil);
enableAllCell.mxkSwitch.on = account.pushNotificationServiceIsActive;
[enableAllCell.mxkSwitch removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[enableAllCell.mxkSwitch removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[enableAllCell.mxkSwitch addTarget:self action:@selector(togglePushNotifications:) forControlEvents:UIControlEventTouchUpInside];
[enableAllCell layoutIfNeeded];
cell = enableAllCell;
}
else if (row == NOTIFICATION_SETTINGS_GLOBAL_SETTINGS_INDEX)