Ejemplo n.º 1
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			
			if (!EulaHelper.HasAcceptedEula (this)) {
				EulaHelper.ShowEula (false, this);
			}

			//AnalyticsUtils.getInstance(this).trackPageView("/Home");
			
			SetContentView (Resource.Layout.ActivityHome);
			
			ActivityHelper.SetupActionBar (null, new Color (0));
			
			var fm = SupportFragmentManager;
			
			tagStream = fm.FindFragmentById (Resource.Id.fragment_tag_stream) as TagStreamFragment;
			
			syncStatusUpdaterFragment = fm.FindFragmentByTag (SyncStatusUpdaterFragment.TAG) as SyncStatusUpdaterFragment;
			if (syncStatusUpdaterFragment == null) {
				syncStatusUpdaterFragment = new SyncStatusUpdaterFragment ();
				fm.BeginTransaction ().Add (syncStatusUpdaterFragment, SyncStatusUpdaterFragment.TAG).Commit ();
	
				TriggerRefresh ();
			}
			
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            if (!EulaHelper.HasAcceptedEula(this))
            {
                EulaHelper.ShowEula(false, this);
            }

            //AnalyticsUtils.getInstance(this).trackPageView("/Home");

            SetContentView(Resource.Layout.ActivityHome);

            ActivityHelper.SetupActionBar(null, new Color(0));

            var fm = SupportFragmentManager;

            tagStream = fm.FindFragmentById(Resource.Id.fragment_tag_stream) as TagStreamFragment;

            syncStatusUpdaterFragment = fm.FindFragmentByTag(SyncStatusUpdaterFragment.TAG) as SyncStatusUpdaterFragment;
            if (syncStatusUpdaterFragment == null)
            {
                syncStatusUpdaterFragment = new SyncStatusUpdaterFragment();
                fm.BeginTransaction().Add(syncStatusUpdaterFragment, SyncStatusUpdaterFragment.TAG).Commit();

                TriggerRefresh();
            }
        }