diff --git a/contrib/mobile/iOS/Onelab/AppDelegate.mm b/contrib/mobile/iOS/Onelab/AppDelegate.mm index e8ae08fe07c0dd36c141094e65f168c567fcf4de..f5d6e9b54a0bfca69fdd9b1513aeb7402f89e78c 100644 --- a/contrib/mobile/iOS/Onelab/AppDelegate.mm +++ b/contrib/mobile/iOS/Onelab/AppDelegate.mm @@ -50,6 +50,7 @@ - (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + [[NSNotificationCenter defaultCenter] postNotificationName:@"requestRender" object:nil]; } - (void)applicationWillTerminate:(UIApplication *)application diff --git a/contrib/mobile/iOS/Onelab/ModelViewController.mm b/contrib/mobile/iOS/Onelab/ModelViewController.mm index c655f9a6683d4d86a013ad6faff5917c00f5390a..4cf7f76334e49e353e50062312162aa9c11448cc 100644 --- a/contrib/mobile/iOS/Onelab/ModelViewController.mm +++ b/contrib/mobile/iOS/Onelab/ModelViewController.mm @@ -304,7 +304,8 @@ - (void)requestRender { - [glView drawView]; + if([[UIApplication sharedApplication] applicationState] == UIApplicationStateActive) + [glView drawView]; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation diff --git a/contrib/mobile/iOS/Onelab/Onelab-Info.plist b/contrib/mobile/iOS/Onelab/Onelab-Info.plist index 3677b436e5c1dce5ea3b31d39e9a8715d6212e32..1aeceaf6cd6374dd82fe65d00e73a53888c7c3aa 100644 --- a/contrib/mobile/iOS/Onelab/Onelab-Info.plist +++ b/contrib/mobile/iOS/Onelab/Onelab-Info.plist @@ -11,9 +11,6 @@ <key>CFBundleIconFiles</key> <array> <string>icon_app_iphone_retina</string> - <string>icon_app_ipad_61</string> - <string>ic_launcher.png</string> - <string>ic_launcher_retina.png</string> </array> </dict> </dict> @@ -24,12 +21,8 @@ <key>CFBundleIconFiles</key> <array> <string>icon_app_ipad</string> - <string>icon_app_iphone_61</string> <string>icon_app_ipad_retina</string> <string>icon_app_iphone_retina</string> - <string>icon_app_ipad_61</string> - <string>ic_launcher.png</string> - <string>ic_launcher_retina.png</string> </array> </dict> </dict> @@ -42,17 +35,13 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0</string> + <string>1.0.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>1.0</string> + <string>1.0.0</string> <key>LSRequiresIPhoneOS</key> <true/> - <key>UIBackgroundModes</key> - <array> - <string></string> - </array> <key>UIFileSharingEnabled</key> <true/> <key>UIMainStoryboardFile</key> @@ -61,7 +50,7 @@ <string>iPadStoryboard</string> <key>UIRequiredDeviceCapabilities</key> <array> - <string>armv7</string> + <string>opengles-1</string> </array> <key>UISupportedInterfaceOrientations</key> <array>