Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android apps loading without a splashscreen #46

Closed
slodge opened this issue Nov 1, 2012 · 2 comments
Closed

Android apps loading without a splashscreen #46

slodge opened this issue Nov 1, 2012 · 2 comments
Labels
t/bug Bug type

Comments

@slodge
Copy link
Contributor

slodge commented Nov 1, 2012

Reported by @gshackles that a vanilla app without a splashscreen was reporting some errors on startup.

@slodge
Copy link
Contributor Author

slodge commented Nov 1, 2012

All apps should include a splashscreen for now.

For a longer term fix, look at how to pass in the ViewModelType for MAIN Intents here

  private static TViewModel LoadViewModel<TViewModel>(this IMvxAndroidView<TViewModel> androidView)
        where TViewModel : class, IMvxViewModel
    {
        var activity = androidView.ToActivity();
        if (typeof(TViewModel) == typeof(MvxNullViewModel))
            return new MvxNullViewModel() as TViewModel;

        var translatorService = androidView.GetService<IMvxAndroidViewModelLoader>();
        var viewModel = translatorService.Load(activity.Intent);

        return (TViewModel)viewModel;
    }

@slodge
Copy link
Contributor Author

slodge commented Nov 19, 2012

This is fixed :)

@slodge slodge closed this as completed Nov 19, 2012
martijn00 added a commit to martijn00/MvvmCross that referenced this issue Dec 8, 2016
Fix wrong name in nuspec of ResourceLoader
martijn00 added a commit to martijn00/MvvmCross that referenced this issue Dec 8, 2016
martijn00 added a commit to martijn00/MvvmCross that referenced this issue Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Bug type
Development

No branches or pull requests

1 participant