disable run-time theme switch
This commit is contained in:
1 parent
6579ea681e
commit
c4bc77db05
2 files changed
+4
-2
No files matched your search
@@ -481,6 +481,7 @@ static const float REFRESH_CYCLE = 2.0f;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
|
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
|
||||||
|
/*
|
||||||
[super traitCollectionDidChange:previousTraitCollection];
|
[super traitCollectionDidChange:previousTraitCollection];
|
||||||
|
|
||||||
if (@available(iOS 13.0, *)) {
|
if (@available(iOS 13.0, *)) {
|
||||||
@@ -489,7 +490,7 @@ static const float REFRESH_CYCLE = 2.0f;
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
[self updateTheme:UIUserInterfaceStyleDark];
|
[self updateTheme:UIUserInterfaceStyleDark];
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1451,7 +1451,8 @@ static NSMutableSet* hostList;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidLoad{
|
- (void)viewDidLoad{
|
||||||
[ThemeManager setUserInterfaceStyle:UIUserInterfaceStyleUnspecified];
|
[ThemeManager setUserInterfaceStyle:UIScreen.mainScreen.traitCollection.userInterfaceStyle];
|
||||||
|
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
//[OrientationHelper updateOrientationToLandscape];
|
//[OrientationHelper updateOrientationToLandscape];
|
||||||
// self.navigationController.delegate = self;
|
// self.navigationController.delegate = self;
|
||||||
|
|||||||
Reference in new issue
Block a user