Modify the logic for saving resolution settings

This commit is contained in:
xzzpig
2024-11-19 09:48:23 +08:00
parent 978c50c271
commit 7699e47157
8 changed files with 89 additions and 18 deletions
@@ -1151,12 +1151,6 @@ static NSMutableSet* hostList;
[self swapResolutionWidthHeightAccordingly];
}
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
[self handleOrientationChange];
}
-(void)handleRealOrientationChange{
}
@@ -1200,6 +1194,7 @@ static NSMutableSet* hostList;
-(void) swapResolutionWidthHeightAccordingly {
return;
DataManager* dataMan = [[DataManager alloc] init];
Settings *currentSettings = [dataMan retrieveSettings];