private static void StartBootstrapperCallback(object state) { var activityBase = (SplashScreenActivityBase)state; Exception exception = null; try { if (_bootstrapper == null) { _bootstrapper = activityBase.CreateBootstrapper(); _bootstrapper.Initialize(); //NOTE: to improve startup performance TypeCache <View> .Initialize(null); #if !API8 TypeCache <Fragment> .Initialize(null); #endif } _bootstrapper.Start(activityBase.GetContext()); } catch (Exception e) { Tracer.Error(e.Flatten(true)); exception = e; } finally { activityBase.OnBootstrapperStarted(_bootstrapper, exception); Current = null; _state = DefaultState; } }
private static void StartBootstrapperCallback(object state) { var activityBase = (SplashScreenActivityBase)state; Exception exception = null; try { if (_bootstrapper == null) { _bootstrapper = activityBase.CreateBootstrapper(); } _bootstrapper.Start(); } catch (Exception e) { Tracer.Error(e.Flatten(true)); exception = e; } finally { activityBase.OnBootstrapperStarted(_bootstrapper, exception); Current = null; _state = DefaultState; } }
private static void StartBootstrapperCallback(object state) { var activityBase = (SplashScreenActivityBase)state; Exception exception = null; AndroidBootstrapperBase bootstrapper = null; try { bootstrapper = AndroidBootstrapperBase.GetOrCreateBootstrapper(activityBase.CreateBootstrapper); bootstrapper.Start(); } catch (Exception e) { Tracer.Error(e.Flatten(true)); exception = e; } finally { activityBase.OnBootstrapperStarted(bootstrapper, exception); AndroidToolkitExtensions.SetCurrentActivity(activityBase, true); _state = DefaultState; } }