protected override void OnResumeFragments()
        {
            base.OnResumeFragments();

            if (TempStorage.Favourites.Count == 0)
            {
                WelcomeFragment welcomeFragment = new WelcomeFragment();
                FragmentManager.BeginTransaction().Replace(Resource.Id.variable_frlayout, welcomeFragment).Commit();
            }
            else
            {
                FavouritesFragment favouritesFragment = new FavouritesFragment(TempStorage.Favourites, new FavouritesAdapter(this, TempStorage.Favourites));
                //Some silly bug happens here...
                FragmentManager.BeginTransaction().Replace(Resource.Id.variable_frlayout, favouritesFragment).Commit();
            }
        }
Beispiel #2
0
		protected override void OnResumeFragments ()
		{
			base.OnResumeFragments ();

			if (TempStorage.Favourites.Count == 0) {
				WelcomeFragment welcomeFragment = new WelcomeFragment ();
				FragmentManager.BeginTransaction ().Replace (Resource.Id.variable_frlayout, welcomeFragment).Commit ();
			} else {
				FavouritesFragment favouritesFragment = new FavouritesFragment (TempStorage.Favourites, new FavouritesAdapter(this, TempStorage.Favourites));
				//Some silly bug happens here...
				FragmentManager.BeginTransaction ().Replace (Resource.Id.variable_frlayout, favouritesFragment).Commit ();
			}
		}