添加guard 蒙层
This commit is contained in:
@@ -177,4 +177,14 @@ static inline NSMutableDictionary *KBLocBaseKCQuery(void) {
|
||||
return lang;
|
||||
}
|
||||
|
||||
- (void)reloadFromSharedStorageIfNeeded {
|
||||
NSString *saved = [[self class] kc_read];
|
||||
if (saved.length == 0) return;
|
||||
if ([saved isEqualToString:self.currentLanguageCode]) return;
|
||||
|
||||
[self applyLanguage:saved];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:KBLocalizationDidChangeNotification
|
||||
object:nil];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user