attempting to fix race condition.

This commit is contained in:
Bryce Covert
2020-02-04 21:56:08 -08:00
parent cd4f894859
commit c70e8be312
3 changed files with 38 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ public class IOSLauncher extends IOSApplication.Delegate {
public boolean didFinishLaunching (UIApplication application, UIApplicationLaunchOptions launchOptions) {
transactionObserver = new TransactionObserver();
SKPaymentQueue.getDefaultQueue().addTransactionObserver(transactionObserver);
new GameCenter().login(application.getKeyWindow());
return super.didFinishLaunching(application, launchOptions);
}
@@ -31,7 +32,6 @@ public class IOSLauncher extends IOSApplication.Delegate {
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
new GameCenter().login();
// config.colorFormat = GLKViewDrawableColorFormat.SRGBA8888;
// config.depthFormat = GLKViewDrawableDepthFormat._24;
config.orientationPortrait = false;