File tree Expand file tree Collapse file tree
MvvmCross.Android.Support/V7.AppCompat
MvvmCross/Platforms/Android/Views Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77using Android . Views ;
88using MvvmCross . Core ;
99using MvvmCross . Platforms . Android . Core ;
10- using MvvmCross . Platforms . Android . Views ;
1110using MvvmCross . ViewModels ;
1211
1312namespace MvvmCross . Droid . Support . V7 . AppCompat
@@ -20,6 +19,8 @@ public abstract class MvxSplashScreenAppCompatActivity
2019
2120 private readonly int _resourceId ;
2221
22+ private Bundle _bundle ;
23+
2324 public new MvxNullViewModel ViewModel
2425 {
2526 get { return base . ViewModel as MvxNullViewModel ; }
@@ -40,6 +41,8 @@ protected override void OnCreate(Bundle bundle)
4041 {
4142 RequestWindowFeatures ( ) ;
4243
44+ _bundle = bundle ;
45+
4346 var setup = MvxAndroidSetupSingleton . EnsureSingletonAvailable ( ApplicationContext ) ;
4447 setup . InitializeAndMonitor ( this ) ;
4548
@@ -77,14 +80,7 @@ public virtual void InitializationComplete()
7780 if ( ! _isResumed )
7881 return ;
7982
80- TriggerFirstNavigate ( ) ;
81- }
82-
83- protected virtual void TriggerFirstNavigate ( )
84- {
85- var startup = Mvx . Resolve < IMvxAppStart > ( ) ;
86- if ( ! startup . IsStarted )
87- startup . Start ( ) ;
83+ RunAppStart ( _bundle ) ;
8884 }
8985 }
9086}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public abstract class MvxSplashScreenActivity
1919
2020 private readonly int _resourceId ;
2121
22+ private Bundle _bundle ;
23+
2224 public new MvxNullViewModel ViewModel
2325 {
2426 get { return base . ViewModel as MvxNullViewModel ; }
@@ -39,6 +41,8 @@ protected override void OnCreate(Bundle bundle)
3941 {
4042 RequestWindowFeatures ( ) ;
4143
44+ _bundle = bundle ;
45+
4246 var setup = MvxAndroidSetupSingleton . EnsureSingletonAvailable ( ApplicationContext ) ;
4347 setup . InitializeAndMonitor ( this ) ;
4448
@@ -76,14 +80,7 @@ public virtual void InitializationComplete()
7680 if ( ! _isResumed )
7781 return ;
7882
79- TriggerFirstNavigate ( ) ;
80- }
81-
82- protected virtual void TriggerFirstNavigate ( )
83- {
84- var startup = Mvx . Resolve < IMvxAppStart > ( ) ;
85- if ( ! startup . IsStarted )
86- startup . Start ( ) ;
83+ RunAppStart ( _bundle ) ;
8784 }
8885 }
8986}
You can’t perform that action at this time.
0 commit comments