fix favorite settings relocation issue
This commit is contained in:
1 parent
ab31ab393a
commit
96145baa7a
1 file changed
+3
-2
@@ -919,7 +919,7 @@ BOOL isCustomResolution(CGSize res) {
|
|||||||
[stack addSubview:button];
|
[stack addSubview:button];
|
||||||
[NSLayoutConstraint activateConstraints:@[
|
[NSLayoutConstraint activateConstraints:@[
|
||||||
[button.trailingAnchor constraintEqualToAnchor:stack.trailingAnchor constant:-4],
|
[button.trailingAnchor constraintEqualToAnchor:stack.trailingAnchor constant:-4],
|
||||||
[button.bottomAnchor constraintEqualToAnchor: stack.arrangedSubviews[0].bottomAnchor constant:-1],
|
[button.bottomAnchor constraintEqualToAnchor: stack.arrangedSubviews[0].bottomAnchor constant:-2],
|
||||||
]];
|
]];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1023,8 +1023,9 @@ BOOL isCustomResolution(CGSize res) {
|
|||||||
|
|
||||||
- (void)saveFavoriteSettingStackIdentifiers {
|
- (void)saveFavoriteSettingStackIdentifiers {
|
||||||
|
|
||||||
if(currentSettingsMenuMode == RemoveSettingItem){
|
if(currentSettingsMenuMode != AllSettings){
|
||||||
[_favoriteSettingStackIdentifiers removeAllObjects];
|
[_favoriteSettingStackIdentifiers removeAllObjects];
|
||||||
|
//for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){
|
||||||
for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){
|
for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){
|
||||||
[_favoriteSettingStackIdentifiers addObject:parentStack.arrangedSubviews[i].accessibilityIdentifier];
|
[_favoriteSettingStackIdentifiers addObject:parentStack.arrangedSubviews[i].accessibilityIdentifier];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user