1
This commit is contained in:
@@ -583,12 +583,15 @@ typedef void(^KBInputProfileSelectHandler)(NSString *languageCode, NSString *lay
|
||||
return;
|
||||
}
|
||||
|
||||
// 严格策略:该语言未配置默认皮肤时,不允许切换语言。
|
||||
KBInputProfile *profile = [[KBInputProfileManager sharedManager] profileForLanguageCode:languageCode];
|
||||
NSString *zipName = profile.defaultSkinZip;
|
||||
|
||||
if (zipName.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Please configure a default skin for this language before switching.")];
|
||||
if (completion) { completion(NO); }
|
||||
NSLog(@"[KBPersonInfoVC] No defaultSkinZip configured for %@, skipping skin installation", languageCode);
|
||||
[self commitInputProfileSwitchWithLanguageCode:languageCode
|
||||
layoutVariant:layoutVariant
|
||||
profileId:profileId];
|
||||
if (completion) { completion(YES); }
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user