- tweak widget templates

- minor improvements & fixes
This commit is contained in:
True Zhuanjia
2026-06-08 01:16:00 +08:00
parent becfc596c1
commit 1a719e11e6
9 changed files with 136 additions and 22 deletions
@@ -1057,6 +1057,30 @@ static NSString* VLTerminationHintForErrorCode(int errorCode) {
}
- (void)enterPip{
if (@available(iOS 15.0, tvOS 15.0, *)) {
if(!_settings.enablePIP){
AlertControllerUtil.autoCompletion = true;
[AlertControllerUtil showAlertIn:self
title:@""
message:[LocalizationHelper localizedStringForKey:@"pipDisabled"]
withCancel:NO
buttonTitle:@""
countdown:1
action:^{}
completion:^{}];
}
}
else {
AlertControllerUtil.autoCompletion = true;
[AlertControllerUtil showAlertIn:self
title:@""
message:[LocalizationHelper localizedStringForKey:@"pipNotSupported"]
withCancel:NO
buttonTitle:@""
countdown:1
action:^{}
completion:^{}];
}
[self.pipController startPictureInPicture];
}