[ios] fix: user interface auto theme changing issue

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-04-16 22:05:33 +04:00 committed by Alexander Borsuk
parent 538719955b
commit d62aad957c

View file

@ -61,8 +61,8 @@
[super traitCollectionDidChange: previousTraitCollection];
// Update the app theme when the device appearance is changing.
if ((self.traitCollection.verticalSizeClass != previousTraitCollection.verticalSizeClass)
|| (self.traitCollection.horizontalSizeClass != previousTraitCollection.horizontalSizeClass)) {
[MWMThemeManager invalidate];
|| (self.traitCollection.horizontalSizeClass != previousTraitCollection.horizontalSizeClass) || (self.traitCollection.userInterfaceStyle != previousTraitCollection.userInterfaceStyle)) {
[MWMThemeManager invalidate];
}
}