forked from organicmaps/organicmaps
[ios] fix: user interface auto theme changing issue
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
parent
538719955b
commit
d62aad957c
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue