fix crash of rotation in background

This commit is contained in:
Danmei Chen 2020-04-20 11:33:38 +02:00
parent 589f8763de
commit a702c8ffbb

View file

@ -226,6 +226,9 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground) {
return;
}
composingVisible = !composingVisible;
[self setComposingVisible:!composingVisible withDelay:0];