ManageSessionViewController: Update getLabelAndSwitchCell method.

This commit is contained in:
SBiOSoftWhare
2020-09-28 17:05:58 +02:00
parent 8e2a06068d
commit eed704557e

View File

@@ -318,7 +318,7 @@ enum {
cell.mxkLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
[cell.mxkSwitch removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[cell.mxkSwitch removeTarget:self action:nil forControlEvents:UIControlEventValueChanged];
// Force layout before reusing a cell (fix switch displayed outside the screen)
[cell layoutIfNeeded];