marinofaggiana 5 năm trước cách đây
mục cha
commit
94cd3c555f
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      iOSClient/AppDelegate.m

+ 3 - 1
iOSClient/AppDelegate.m

@@ -218,7 +218,9 @@
         [self.activeDetail.richDocument grabFocus];
     }
     
-    [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"applicationWillEnterForeground" object:nil];
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"applicationWillEnterForeground" object:nil];
+    });
 }
 
 //