ManageSessionViewController: Update getLabelAndSwitchCell method.

This commit is contained in:
SBiOSoftWhare
2020-09-28 17:05:58 +02:00
parent bcaf42f426
commit 6fa7c74953
@@ -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];