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
+1 -1
View File
@@ -186,7 +186,7 @@
"settings_phone_number" = "Phone Number";
"settings_night_mode" = "Night Mode";
"settings_enable_push_notif" = "Enable notifications on your device";
"settings_enable_push_notif" = "Notifications on this device";
"settings_global_settings_info" = "Global notification settings are available on your Vector web client";
//"settings_enable_all_notif" = "Enable all notifications";
//"settings_messages_my_display_name" = "Msg containing my display name";
@@ -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)