marinofaggiana 5 vuotta sitten
vanhempi
commit
94cd3c555f
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  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];
+    });
 }
 
 //