- PiP stack tip

- settings menu interaction minor fix
This commit is contained in:
TrueZhuanjia
2025-07-23 20:10:42 +08:00
parent a8c1451a28
commit ff991dd617
2 changed files with 39 additions and 3 deletions
@@ -978,11 +978,15 @@ BOOL isCustomResolution(CGSize res) {
tipText = [LocalizationHelper localizedStringForKey:@"hdrStackTip"];
showOnlineDocAction = false;
}
if([sender.superview.accessibilityIdentifier isEqualToString: @"pipStack"]){
tipText = [LocalizationHelper localizedStringForKey:@"pipStackTip"];
showOnlineDocAction = false;
}
if([sender.superview.accessibilityIdentifier isEqualToString: @"softKeyboardGestureStack" ]){
tipText = [LocalizationHelper localizedStringForKey:@"softKeyboardGestureStackTip"];
showOnlineDocAction = true;
onlineDocLink = @"softKeyboardGestureStackDoc";
}
@@ -1526,7 +1530,7 @@ BOOL isCustomResolution(CGSize res) {
[_softKeyboardGestureSelector setSelectedSegmentIndex:_softKeyboardGestureSelector.selectedSegmentIndex-1];
}
for (NSInteger i = 0; i < _softKeyboardGestureSelector.numberOfSegments; i++) {
[_softKeyboardGestureSelector setEnabled:![self isCustomOswEnabled] ? true : i+3 != oswLayoutFingers forSegmentAtIndex:i]; // 或 NO 来禁用
[_softKeyboardGestureSelector setEnabled:![self isCustomOswEnabled] || i == 3 ? true : i+3 != oswLayoutFingers forSegmentAtIndex:i]; // 或 NO 来禁用
}
}