예제 #1
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();
            }
        }
예제 #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 ();
			}
		}